Skip to content

Commit 42f9587

Browse files
committed
moved keyless subquery test to correct place
1 parent 22622a0 commit 42f9587

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

enginetest/queries/update_queries.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,21 @@ var UpdateScriptTests = []ScriptTest{
638638
},
639639
},
640640
},
641+
{
642+
Name: "UPDATE with subquery in keyless tables",
643+
// https://github.com/dolthub/dolt/issues/9334
644+
SetUpScript: []string{
645+
"create table t (i int)",
646+
"insert into t values (1)",
647+
"update t set i = 10 where i in (select 1)",
648+
},
649+
Assertions: []ScriptTestAssertion{
650+
{
651+
Query: "select * from t",
652+
Expected: []sql.Row{{10}},
653+
},
654+
},
655+
},
641656
}
642657

643658
var SpatialUpdateTests = []WriteQueryTest{

0 commit comments

Comments
 (0)