mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-10 10:30:57 -06:00
fix misplaced commas
This commit is contained in:
@@ -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"}},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user