Hei,

does this fix: http://issues.ez.no/10106 ?

regards,
Derick

On Mon, 19 Feb 2007, Tobias Schlitt wrote:

> Author: Tobias Schlitt
> Date: 2007-02-19 11:32:56 +0100 (Mon, 19 Feb 2007)
> New Revision: 4665
> 
> Log:
> - Added missing quoting.
> 
> Modified:
>    trunk/PersistentObject/src/generators/manual_generator.php
> 
> Modified: trunk/PersistentObject/src/generators/manual_generator.php
> ===================================================================
> --- trunk/PersistentObject/src/generators/manual_generator.php        
> 2007-02-19 10:31:08 UTC (rev 4664)
> +++ trunk/PersistentObject/src/generators/manual_generator.php        
> 2007-02-19 10:32:56 UTC (rev 4665)
> @@ -39,7 +39,7 @@
>          // check if there is an object with this id already
>          $q = $db->createSelectQuery();
>          $q->select( '*' )->from( $def->table )
> -            ->where( $q->expr->eq( $def->idProperty->columnName,
> +            ->where( $q->expr->eq( $db->quoteIdentifier( 
> $def->idProperty->columnName ),
>                                     $q->bindValue( $this->id ) ) );
>          try
>          {
> @@ -71,7 +71,7 @@
>       */
>      public function preSave( ezcPersistentObjectDefinition $def, 
> ezcDbHandler $db, ezcQueryInsert $q )
>      {
> -        $q->set( $def->idProperty->columnName, $q->bindValue( $this->id ) );
> +        $q->set( $db->quoteIdentifier( $def->idProperty->columnName ), 
> $q->bindValue( $this->id ) );
>      }
>  
>      /**
> 
> 

-- 
Derick Rethans
eZ components Product Manager
eZ systems | http://ez.no
-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to