@@ -638,6 +638,21 @@ var UpdateScriptTests = []ScriptTest{
638
638
},
639
639
},
640
640
},
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
+ },
641
656
}
642
657
643
658
var SpatialUpdateTests = []WriteQueryTest {
@@ -920,21 +935,6 @@ var UpdateIgnoreScripts = []ScriptTest{
920
935
},
921
936
},
922
937
},
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
- },
938
938
}
939
939
940
940
var UpdateErrorTests = []QueryErrorTest {
0 commit comments