fix misplaced commas

This commit is contained in:
Elian
2025-06-25 18:02:01 -07:00
parent b1e631fb4b
commit e2a4d1fb9a

View File

@@ -2636,21 +2636,20 @@ WHERE z IN (
{
Name: "dolt_history table non-unique pk columns ignored for max1row optimization",
SetUpScript: []string{
`CREATE TABLE t1 (id INT PRIMARY KEY, message TEXT);
INSERT INTO t1 (id, message) VALUES (1, 'test1');
INSERT INTO t1 (id, message) VALUES (2, 'irrelevant');
CALL DOLT_COMMIT('-A', '-m', 'test commit 1');
UPDATE t1 SET message='test2' WHERE id=1;
CALL DOLT_COMMIT('-a', '-m', 'test commit 2');`
"CREATE TABLE t1 (id INT PRIMARY KEY, message TEXT);",
"INSERT INTO t1 (id, message) VALUES (1, 'test1');",
"INSERT INTO t1 (id, message) VALUES (2, 'irrelevant');",
"CALL DOLT_COMMIT('-A', '-m', 'test commit 1');",
"UPDATE t1 SET message='test2' WHERE id=1;",
"CALL DOLT_COMMIT('-a', '-m', 'test commit 2');",
},
Assertions: []queries.ScriptTestAssertion{
{
Query: "SELECT id, message FROM dolt_history_t1 where id = 1 order by commit_date desc;",
Query: "SELECT id, message FROM dolt_history_t1 where id = 1 order by commit_date desc;",
Expected: []sql.Row{{1, "test2"}, {1, "test1"}},
},
{
Query: "SELECT id, message FROM dolt_history_t1 where id = 2;",
Query: "SELECT id, message FROM dolt_history_t1 where id = 2;",
Expected: []sql.Row{{2, "irrelevant"}, {2, "irrelevant"}},
},
},