[wp-trac] [WordPress Trac] #15158: wpdb insert & update with null values
WordPress Trac
noreply at wordpress.org
Thu Oct 1 05:36:17 UTC 2015
#15158: wpdb insert & update with null values
----------------------------------+---------------------
Reporter: westi | Owner: pento
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Database | Version: 3.0.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-docs | Focuses:
----------------------------------+---------------------
Changes (by pento):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34737"]:
{{{
#!CommitTicketReference repository="" revision="34737"
WPDB: Allow `null` values in the CRUD functions.
Specifically, `::insert()`, `::replace()`, `::update()`, and `::delete()`
can now set a column to `NULL`, or add the `IS NULL` condition to the
`WHERE` clause.
This is based on [backpress 279].
Props pento, nbachiyski, sorich87.
Fixes #15158.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15158#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list