diff --git a/tests/EndToEndTest.php b/tests/EndToEndTest.php index 262f9653..8b4c8a5c 100644 --- a/tests/EndToEndTest.php +++ b/tests/EndToEndTest.php @@ -1138,6 +1138,13 @@ public function testSelectNullableFields() ); } + public function testUpdateWithOrderAndPrimaryKey() + { + $pdo = self::getConnectionToFullDB(false); + $pdo->exec('UPDATE `video_game_characters` SET `bio_en` = "spiky boi" WHERE `id` = 7 ORDER BY `id` DESC'); + } + + private static function getPdo(string $connection_string, bool $strict_mode = false) : \PDO { $options = $strict_mode ? [\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET sql_mode="STRICT_ALL_TABLES"'] : [];