Use expression builder instead of addQuotes()

Bug: T350960
Change-Id: Ib994ad36427f1404e3cc011a6187799842e08df0
This commit is contained in:
Bartosz Dziewoński 2023-11-11 00:30:41 +01:00
parent b8e437a38d
commit f2a60308aa

View file

@ -35,7 +35,7 @@ class ValidateTemplateData extends Maintenance {
->join( 'page', null, 'pp_page=page_id' )
->fields( [ 'pp_page', 'pp_value', 'page_namespace', 'page_title' ] )
->where( [
'pp_page > ' . $db->addQuotes( $lastId ),
$db->expr( 'pp_page', '>', $lastId ),
'pp_propname' => 'templatedata'
] )
->orderBy( 'pp_page' )