File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -3333,26 +3333,14 @@ func TestSelectWithUnionAll(t *testing.T) {
3333
3333
bv1 , _ := sqltypes .BuildBindVariable ([]int64 {1 , 2 })
3334
3334
bv2 , _ := sqltypes .BuildBindVariable ([]int64 {3 })
3335
3335
sbc1WantQueries := []* querypb.BoundQuery {{
3336
- Sql : "select id from `user` where id in ::__vals" ,
3337
- BindVariables : map [string ]* querypb.BindVariable {
3338
- "__vals" : bv1 ,
3339
- "vtg1" : bv ,
3340
- },
3341
- }, {
3342
- Sql : "select id from `user` where id in ::__vals" ,
3336
+ Sql : "select id from `user` where id in ::__vals union all select id from `user` where id in ::vtg1" ,
3343
3337
BindVariables : map [string ]* querypb.BindVariable {
3344
3338
"__vals" : bv1 ,
3345
3339
"vtg1" : bv ,
3346
3340
},
3347
3341
}}
3348
3342
sbc2WantQueries := []* querypb.BoundQuery {{
3349
- Sql : "select id from `user` where id in ::__vals" ,
3350
- BindVariables : map [string ]* querypb.BindVariable {
3351
- "__vals" : bv2 ,
3352
- "vtg1" : bv ,
3353
- },
3354
- }, {
3355
- Sql : "select id from `user` where id in ::__vals" ,
3343
+ Sql : "select id from `user` where id in ::__vals union all select id from `user` where id in ::vtg1" ,
3356
3344
BindVariables : map [string ]* querypb.BindVariable {
3357
3345
"__vals" : bv2 ,
3358
3346
"vtg1" : bv ,
You can’t perform that action at this time.
0 commit comments