Fix MySQLism in populateRevisionLength.php
Use addQuotes() to make a quoted string instead of MySQL's nonstandard use of double-quotes. Change-Id: Ie2d017a33b694417a3db140b2798a8d55f911985
This commit is contained in:
parent
dd3125c3b1
commit
5e6efe18d0
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance {
|
|||
"{$prefix}_len IS NULL",
|
||||
$dbr->makeList( [
|
||||
"{$prefix}_len = 0",
|
||||
"{$prefix}_sha1 != \"phoiac9h4m842xq45sp7s6u21eteeq1\"", // sha1( "" )
|
||||
"{$prefix}_sha1 != " . $dbr->addQuotes( 'phoiac9h4m842xq45sp7s6u21eteeq1' ), // sha1( "" )
|
||||
], IDatabase::LIST_AND )
|
||||
], IDatabase::LIST_OR )
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue