dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3125c
)
Fix MySQLism in populateRevisionLength.php
author
Brad Jorsch
<bjorsch@wikimedia.org>
Tue, 1 May 2018 13:24:36 +0000
(09:24 -0400)
committer
Brad Jorsch
<bjorsch@wikimedia.org>
Tue, 1 May 2018 13:25:59 +0000
(09:25 -0400)
Use addQuotes() to make a quoted string instead of MySQL's nonstandard
use of double-quotes.
Change-Id: Ie2d017a33b694417a3db140b2798a8d55f911985
maintenance/populateRevisionLength.php
patch
|
blob
|
history
diff --git
a/maintenance/populateRevisionLength.php
b/maintenance/populateRevisionLength.php
index
ffa4ff7
..
dcb89d1
100644
(file)
--- a/
maintenance/populateRevisionLength.php
+++ b/
maintenance/populateRevisionLength.php
@@
-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 )
],