[wp-trac] [WordPress Trac] #15158: wpdb insert & update with null values

WordPress Trac noreply at wordpress.org
Thu Jan 3 18:08:38 UTC 2013


#15158: wpdb insert & update with null values
-------------------------+-----------------------------
 Reporter:  westi        |       Owner:  sorich87
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  Future Release
Component:  Database     |     Version:  3.0.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by deltafactory):

 While I support the addition of NULL support, I wonder if it would break
 some plugins that rely on wpdb::prepare() to convert null to zero or an
 empty string. Would it make sense to support nulls when explicitly
 enabled, for example:

 `$wpdb->enable_nulls = true;`

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


More information about the wp-trac mailing list