[wp-trac] [WordPress Trac] #22196: add $wpdb->upsert function

WordPress Trac noreply at wordpress.org
Fri Jul 21 13:32:51 UTC 2017


#22196: add $wpdb->upsert function
-------------------------------------------------+-------------------------
 Reporter:  thomask                              |       Owner:
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  Future
Component:  Database                             |  Release
 Severity:  normal                               |     Version:  3.4.2
 Keywords:  has-patch needs-testing needs-       |  Resolution:  maybelater
  refresh needs-unit-tests                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by thomask):

 I am not an expert in this area, but wouldn't be a solution to that
 problem be allowing upsert for single ID? This is anyway the most typical
 scenario. But i am fine if it would be maybelater and wait for some mysql
 change, as i have reported this 5 years ago and reaction was minimal

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22196#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list