#1475: Quote boolean in Doctrine_Formatter
----------------------------------------+-----------------------------------
 Reporter:  j.debowczyk                 |       Owner:  jwage
     Type:  defect                      |      Status:  new  
 Priority:  major                       |   Milestone:       
Component:  Other                       |     Version:  1.0  
 Keywords:  formatter postgresql quote  |    Has_test:  0    
 Mystatus:  Pending Core Response       |   Has_patch:  1    
----------------------------------------+-----------------------------------
 Formatter::quote() method used to boolean value on PgSql connection simply
 returns this boolean. Then code, which is building query looks like

 {{{
 'bool_column = ' . $bool_variable
 }}}

 In effect query looks 'bool_column = 1', which is not acceptable in
 PostgreSQL.
 Boolean value should be quoted with PDO.

-- 
Ticket URL: <http://trac.phpdoctrine.org/ticket/1475>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to