[wp-trac] [WordPress Trac] #10864: Add replace method to wpdb

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 22 19:15:50 UTC 2009


#10864: Add replace method to wpdb
---------------------------+------------------------------------------------
 Reporter:  aaroncampbell  |       Owner:  ryan                   
     Type:  enhancement    |      Status:  new                    
 Priority:  normal         |   Milestone:  3.0                    
Component:  Database       |     Version:                         
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------

Comment(by Denis-de-Bernardy):

 Suggesting wontfix, personally. If memory serves, REPLACE INTO will change
 the ID of the original row.

 Better use INSERT ... ON DUPLICATE statements where appropriate.

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


More information about the wp-trac mailing list