Skip to content

Commit ffc890c

Browse files
committed
add test
1 parent 1839a3e commit ffc890c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

enginetest/join_op_tests.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,12 +1980,21 @@ SELECT SUM(x) FROM xy WHERE x IN (
19801980
name: "where not exists",
19811981
setup: [][]string{
19821982
setup.XyData[0],
1983+
{
1984+
"create table t(c varchar(500))",
1985+
"insert into t values ('a'),('a')",
1986+
},
19831987
},
19841988
tests: []JoinOpTests{
19851989
{
19861990
Query: `select * from xy_hasnull x where not exists(select 1 from ab_hasnull a where a.b = x.y)`,
19871991
Expected: []sql.Row{{1, 0}, {3, nil}},
19881992
},
1993+
{
1994+
// https://github.com/dolthub/dolt/issues/9828
1995+
Query: "with v as (select 'a' as c where false) select null from t where not exists (select 1 from v where v.c <> t.c);",
1996+
Expected: []sql.Row{{nil}, {nil}},
1997+
},
19891998
},
19901999
},
19912000
{

0 commit comments

Comments
 (0)