They need to be passed through $db->timestamp().
Bug: T75174
Change-Id: I94ff961ae27220bcf15eda201677159f6c2d38ef
$row = $db->selectRow(
'revision',
[ 'rev_user', 'rev_user_text' ],
$row = $db->selectRow(
'revision',
[ 'rev_user', 'rev_user_text' ],
- [ 'rev_timestamp' => "201601010{$n}0000" ],
+ [ 'rev_timestamp' => $db->timestamp( "201601010{$n}0000" ) ],
__METHOD__
);
$this->assertSame(
__METHOD__
);
$this->assertSame(
$row = $db->selectRow(
'revision',
[ 'rev_user', 'rev_user_text' ],
$row = $db->selectRow(
'revision',
[ 'rev_user', 'rev_user_text' ],
- [ 'rev_timestamp' => "201601010{$n}0001" ],
+ [ 'rev_timestamp' => $db->timestamp( "201601010{$n}0001" ) ],
__METHOD__
);
$this->assertSame( ( $assign ? '' : 'Xxx>' ) . $user->getName(), $row->rev_user_text );
__METHOD__
);
$this->assertSame( ( $assign ? '' : 'Xxx>' ) . $user->getName(), $row->rev_user_text );