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

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 27 00:52:33 UTC 2009


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

Comment(by aaroncampbell):

 In the attached patch I created a new method in wpdb called
 _insert_replace_helper, which is meant to be a private method.  Both
 wpdb::insert and the new wpdb::replace use it.  If whomever is in charge
 prefers it to be done another way, just let me know and I'd be happy to
 make a new patch.

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


More information about the wp-trac mailing list