Skip to content

Commit 3ca53a1

Browse files
committed
Amend index_queries.go
1 parent c43cfbe commit 3ca53a1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

enginetest/queries/index_queries.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4094,11 +4094,21 @@ var IndexPrefixQueries = []ScriptTest{
40944094
Expected: []sql.Row{},
40954095
ExpectedIndexes: []string{"a_idx"},
40964096
},
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+
},
40974102
{
40984103
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
40994104
Expected: []sql.Row{},
41004105
ExpectedIndexes: []string{"b_idx"},
41014106
},
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+
},
41024112
},
41034113
},
41044114
{
@@ -4112,11 +4122,21 @@ var IndexPrefixQueries = []ScriptTest{
41124122
Expected: []sql.Row{},
41134123
ExpectedIndexes: []string{"a_idx"},
41144124
},
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+
},
41154130
{
41164131
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
41174132
Expected: []sql.Row{},
41184133
ExpectedIndexes: []string{"b_idx"},
41194134
},
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+
},
41204140
},
41214141
},
41224142
{
@@ -4130,11 +4150,21 @@ var IndexPrefixQueries = []ScriptTest{
41304150
Expected: []sql.Row{},
41314151
ExpectedIndexes: []string{"a_idx"},
41324152
},
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+
},
41334158
{
41344159
Query: "select * from test where shared1 = 1 and shared2 = 2 and b3 = 3;",
41354160
Expected: []sql.Row{},
41364161
ExpectedIndexes: []string{"b_idx"},
41374162
},
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+
},
41384168
},
41394169
},
41404170
{

0 commit comments

Comments
 (0)