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
Query: "select * from test where shared1 = 1 and shared2 = 2 and a3 = 3;",
4076
+
Expected: []sql.Row{},
4077
+
ExpectedIndexes: []string{"a_idx"},
4078
+
},
4079
+
{
4080
+
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
4081
+
Expected: []sql.Row{},
4082
+
ExpectedIndexes: []string{"b_idx"},
4083
+
},
4084
+
},
4085
+
},
4086
+
{
4087
+
Name: "multiple non-unique index prefixes",
4088
+
SetUpScript: []string{
4089
+
"create table test(pk int primary key, shared1 int not null, shared2 int not null, a3 int not null, a4 int not null, b3 int not null, b4 int not null, key a_idx(shared1, shared2, a3, a4), key b_idx(shared1, shared2, b3, b4))",
4090
+
},
4091
+
Assertions: []ScriptTestAssertion{
4092
+
{
4093
+
Query: "select * from test where shared1 = 1 and shared2 = 2 and a3 = 3;",
4094
+
Expected: []sql.Row{},
4095
+
ExpectedIndexes: []string{"a_idx"},
4096
+
},
4097
+
{
4098
+
Query: "select * from test where shared1 = 1 and shared2 = 2 and a3 > 3 and a3 < 5;",
4099
+
Expected: []sql.Row{},
4100
+
ExpectedIndexes: []string{"a_idx"},
4101
+
},
4102
+
{
4103
+
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
4104
+
Expected: []sql.Row{},
4105
+
ExpectedIndexes: []string{"b_idx"},
4106
+
},
4107
+
{
4108
+
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 > 3 and b3 < 5;",
4109
+
Expected: []sql.Row{},
4110
+
ExpectedIndexes: []string{"b_idx"},
4111
+
},
4112
+
},
4113
+
},
4114
+
{
4115
+
Name: "multiple non-unique nullable index prefixes",
0 commit comments