[wp-trac] [WordPress Trac] #18948: Introduce $wpdb->delete()
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 20 14:52:54 UTC 2011
#18948: Introduce $wpdb->delete()
-----------------------------+-----------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Database | Version:
Severity: normal | Resolution:
Keywords: has-patch early |
-----------------------------+-----------------------------
Comment (by justindgivens):
Been going through all the code that contains sql DELETE queries and I ran
across the below query.
[http://core.trac.wordpress.org/attachment/ticket/18948/18948.diff
18948.diff] won't handle this type of delete.
[http://core.trac.wordpress.org/browser/trunk/wp-
admin/includes/upgrade.php#L295 /wp-admin/includes/upgrade.php#L295]
{{{
"DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s"
}}}
Any suggestions?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18948#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list