mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Use user_properties.up_value with string in database query
The field up_value is a varbinary and should be provided as string, not all rdbms implicit converts int/strings Change-Id: Ideb28ad9cc475dad84d0f7dc45a0f3c286f4487c
This commit is contained in:
parent
687284939c
commit
186e79d41b
|
@ -102,7 +102,7 @@ class NewTopicOptOutActiveUsers extends Maintenance {
|
|||
->where( [
|
||||
'up_user' => $userId,
|
||||
'up_property' => 'discussiontools-betaenable',
|
||||
'up_value' => 1,
|
||||
'up_value' => '1',
|
||||
] )
|
||||
->field( '1' )
|
||||
->fetchField();
|
||||
|
@ -134,7 +134,7 @@ class NewTopicOptOutActiveUsers extends Maintenance {
|
|||
->row( [
|
||||
'up_user' => $userId,
|
||||
'up_property' => 'discussiontools-' . HookUtils::NEWTOPICTOOL,
|
||||
'up_value' => 0,
|
||||
'up_value' => '0',
|
||||
] )
|
||||
->caller( __METHOD__ )
|
||||
->execute();
|
||||
|
|
Loading…
Reference in a new issue