[wp-trac] [WordPress Trac] #26106: Passing empty array to wpdb::update() generates invalid SQL

WordPress Trac noreply at wordpress.org
Tue Nov 19 03:50:18 UTC 2013


#26106: Passing empty array to wpdb::update() generates invalid SQL
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 Seems dangerous to allow an unbounded UPDATE with ease. Perhaps we could
 allow for something like exactly `array( '1' => '1' )` (as in, WHERE 1=1)
 as an under-the-hood, explicit way of doing an unbounded UPDATE.

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


More information about the wp-trac mailing list