You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/libraries/doltcore/sqle/enginetest/dolt_queries_diff.go
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,11 @@ var DiffSystemTableScriptTests = []queries.ScriptTest{
38
38
Query: "SELECT COUNT(*) FROM DOLT_DIFF_t;",
39
39
Expected: []sql.Row{{2}},
40
40
},
41
+
{
42
+
// Test case-insensitive table name
43
+
Query: "SELECT COUNT(*) FROM DOLT_DIFF_T;",
44
+
Expected: []sql.Row{{2}},
45
+
},
41
46
{
42
47
Query: "SELECT to_pk, to_c1, to_c2, from_pk, from_c1, from_c2, diff_type FROM DOLT_DIFF_t WHERE TO_COMMIT=@Commit1 ORDER BY to_pk, to_c2, to_c2, from_pk, from_c1, from_c2, diff_type;",
43
48
Expected: []sql.Row{
@@ -4750,6 +4755,14 @@ var CommitDiffSystemTableScriptTests = []queries.ScriptTest{
4750
4755
{4, 5, 6, nil, nil, nil, "added"},
4751
4756
},
4752
4757
},
4758
+
{
4759
+
// Test case-insensitive table name
4760
+
Query: "SELECT to_pk, to_c1, to_c2, from_pk, from_c1, from_c2, diff_type FROM DOLT_COMMIT_DIFF_T WHERE TO_COMMIT=@Commit1 and FROM_COMMIT=@Commit0;",
4761
+
Expected: []sql.Row{
4762
+
{1, 2, 3, nil, nil, nil, "added"},
4763
+
{4, 5, 6, nil, nil, nil, "added"},
4764
+
},
4765
+
},
4753
4766
{
4754
4767
Query: "SELECT to_pk, to_c1, to_c2, from_pk, from_c1, from_c2, diff_type FROM DOLT_COMMIT_DIFF_t WHERE TO_COMMIT=@Commit2 and FROM_COMMIT=@Commit1 ORDER BY to_pk;",
0 commit comments