Skip to content

Commit fe8f611

Browse files
committed
additional test
1 parent 8837bc2 commit fe8f611

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

enginetest/join_op_tests.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,24 @@ var DefaultJoinOpTests = []joinOpTest{
251251
},
252252
},
253253
},
254+
{
255+
name: "type conversion panic bug",
256+
setup: [][]string{
257+
setup.MydbData[0],
258+
{
259+
"create table xy (x int primary key, y int, z varchar(10), key (y,z));",
260+
"insert into xy values (0,0,'0'), (1,1,'1');",
261+
"create table ab (a int primary key, b int);",
262+
"insert into ab values (0,0), (1,1);",
263+
},
264+
},
265+
tests: []JoinOpTests{
266+
{
267+
Query: "select /*+ JOIN_ORDER(ab,xy) */ count(*) from xy join ab on y = a and z = 0",
268+
Expected: []sql.Row{{1}},
269+
},
270+
},
271+
},
254272
{
255273
name: "partial key null lookup join indexes",
256274
setup: [][]string{

0 commit comments

Comments
 (0)