Last modified: 2014-07-10 23:59:44 UTC
Per the other queries, it'd be nice to be able to do options on delete. For the resource loader maintenance script to do cleanupRemovedModules, there is a "LIMIT $limit", which can't be accommodated via $db->delete() You need to do db->$query() etc. Not a big deal, just not got time/inclination to look at/do this now for all databases etc
// $dbw->delete() doesn't support LIMIT :(
*** Bug 52868 has been marked as a duplicate of this bug. ***
In Postgres you'll have to do the trick with DELETE FROM table WHERE ctid IN (SELECT ctid FROM table WHERE ... LIMIT n) - ewwww. SQLite and Oracle support LIMIT in DELETE.
Related: bug 52777 and bug 52778.
Change 131890 had a related patch set uploaded by Withoutaname: Expand Database.php delete() function parameter list https://gerrit.wikimedia.org/r/131890
Change 131890 abandoned by Withoutaname: Expand Database.php delete() function parameter list https://gerrit.wikimedia.org/r/131890