@@ -4094,11 +4094,21 @@ var IndexPrefixQueries = []ScriptTest{
4094
4094
Expected: []sql.Row{},
4095
4095
ExpectedIndexes: []string{"a_idx"},
4096
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
+ },
4097
4102
{
4098
4103
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
4099
4104
Expected: []sql.Row{},
4100
4105
ExpectedIndexes: []string{"b_idx"},
4101
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
+ },
4102
4112
},
4103
4113
},
4104
4114
{
@@ -4112,11 +4122,21 @@ var IndexPrefixQueries = []ScriptTest{
4112
4122
Expected: []sql.Row{},
4113
4123
ExpectedIndexes: []string{"a_idx"},
4114
4124
},
4125
+ {
4126
+ Query: "select * from test where shared1 = 1 and shared2 = 2 and a3 > 3 and a3 < 5;",
4127
+ Expected: []sql.Row{},
4128
+ ExpectedIndexes: []string{"a_idx"},
4129
+ },
4115
4130
{
4116
4131
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
4117
4132
Expected: []sql.Row{},
4118
4133
ExpectedIndexes: []string{"b_idx"},
4119
4134
},
4135
+ {
4136
+ Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 > 3 and b3 < 5;",
4137
+ Expected: []sql.Row{},
4138
+ ExpectedIndexes: []string{"b_idx"},
4139
+ },
4120
4140
},
4121
4141
},
4122
4142
{
@@ -4130,11 +4150,21 @@ var IndexPrefixQueries = []ScriptTest{
4130
4150
Expected: []sql.Row{},
4131
4151
ExpectedIndexes: []string{"a_idx"},
4132
4152
},
4153
+ {
4154
+ Query: "select * from test where shared1 = 1 and shared2 = 2 and a3 > 3 and a3 < 5;",
4155
+ Expected: []sql.Row{},
4156
+ ExpectedIndexes: []string{"a_idx"},
4157
+ },
4133
4158
{
4134
4159
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
4135
4160
Expected: []sql.Row{},
4136
4161
ExpectedIndexes: []string{"b_idx"},
4137
4162
},
4163
+ {
4164
+ Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 > 3 and b3 < 5;",
4165
+ Expected: []sql.Row{},
4166
+ ExpectedIndexes: []string{"b_idx"},
4167
+ },
4138
4168
},
4139
4169
},
4140
4170
{
0 commit comments