[wp-trac] [WordPress Trac] #26106: Passing empty array to wpdb::update() generates invalid SQL
WordPress Trac
noreply at wordpress.org
Thu Nov 21 01:13:14 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 Viper007Bond):
Replying to [comment:1 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.
That could work, and infact that's what I tried before I realized that the
first `1` would be treated as a column name.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26106#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list