Skip to content

Commit 635d803

Browse files
authored
Merge pull request #3053 from dolthub/angela/fix_test
moved keyless subquery test to correct place
2 parents 9b52dc7 + f412af1 commit 635d803

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

enginetest/queries/update_queries.go

Lines changed: 15 additions & 15 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{
@@ -920,21 +935,6 @@ var UpdateIgnoreScripts = []ScriptTest{
920935
},
921936
},
922937
},
923-
{
924-
Name: "UPDATE with subquery in keyless tables",
925-
// https://github.com/dolthub/dolt/issues/9334
926-
SetUpScript: []string{
927-
"create table t (i int)",
928-
"insert into t values (1)",
929-
"update t set i = 10 where i in (select 1)",
930-
},
931-
Assertions: []ScriptTestAssertion{
932-
{
933-
Query: "select * from t",
934-
Expected: []sql.Row{{10}},
935-
},
936-
},
937-
},
938938
}
939939

940940
var UpdateErrorTests = []QueryErrorTest{

0 commit comments

Comments
 (0)