[wp-trac] [WordPress Trac] #11608: wpdb->prepare() is broken

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 25 15:57:10 UTC 2009


#11608: wpdb->prepare() is broken
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  ryan            
     Type:  defect (bug)  |      Status:  new             
 Priority:  normal        |   Milestone:  3.0             
Component:  Database      |     Version:  2.9             
 Severity:  normal        |    Keywords:  has-patch tested
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 In retrospect we should have used the syntax that is accepted by PDO for
 this stuff, i.e. either of:

 {{{
 "SELECT * FROM foo WHERE bar = ?" # ? gets replaced by first variable
 "SELECT * FROM foo WHERE bar = :bar" # :bar gets replaced by variable
 named bar
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11608#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list