[wp-trac] Re: [WordPress Trac] #5145: Proper use of prepared statements

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 5 00:06:02 GMT 2007


#5145: Proper use of prepared statements
---------------------+------------------------------------------------------
 Reporter:  xknown   |        Owner:  markjaquith
     Type:  defect   |       Status:  assigned   
 Priority:  normal   |    Milestone:  2.4        
Component:  General  |      Version:             
 Severity:  normal   |   Resolution:             
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by DD32):

 Is there a reason why this wasnt implemented as such:

 {{{
 $wpdb->prepare(
         "UPDATE IGNORE $wpdb->posts SET
         post_author = %s,
         post_date = %s,
 ...
 }}}

 Its a bit harder to read, However, it'll pass through prepare() as
 expected.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5145#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list