mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
Use expression builder instead of addQuotes()
Bug: T350960 Change-Id: Ib994ad36427f1404e3cc011a6187799842e08df0
This commit is contained in:
parent
b8e437a38d
commit
f2a60308aa
|
@ -35,7 +35,7 @@ class ValidateTemplateData extends Maintenance {
|
||||||
->join( 'page', null, 'pp_page=page_id' )
|
->join( 'page', null, 'pp_page=page_id' )
|
||||||
->fields( [ 'pp_page', 'pp_value', 'page_namespace', 'page_title' ] )
|
->fields( [ 'pp_page', 'pp_value', 'page_namespace', 'page_title' ] )
|
||||||
->where( [
|
->where( [
|
||||||
'pp_page > ' . $db->addQuotes( $lastId ),
|
$db->expr( 'pp_page', '>', $lastId ),
|
||||||
'pp_propname' => 'templatedata'
|
'pp_propname' => 'templatedata'
|
||||||
] )
|
] )
|
||||||
->orderBy( 'pp_page' )
|
->orderBy( 'pp_page' )
|
||||||
|
|
Loading…
Reference in a new issue