[wp-trac] [WordPress Trac] #22196: add $wpdb->upsert function
WordPress Trac
noreply at wordpress.org
Thu Jul 20 05:52: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 reporter- | Resolution: invalid
feedback needs-refresh needs-unit-tests | Focuses:
-------------------------------------------------+-------------------------
Changes (by donpark):
* status: reopened => closed
* resolution: => invalid
Comment:
Replying to [comment:4 pento]:
> MySQL's `INSERT ... ON DUPLICATE KEY UPDATE` is... kind of weird, ...
> though I'm interested in your thoughts on the matter.
I wasn't aware of MySQL's UPSERT issues. I'll need do some research before
I can share anything.
> Also, this will need many unit tests. :-)
I agree. :-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22196#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list