Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
  • Loading branch information
harshit-gangal committed Dec 26, 2024
1 parent 0fc2fe9 commit 3c28e2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go/vt/vtgate/planbuilder/operators/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func updateQueryGraphWithSource(ctx *plancontext.PlanningContext, input Operator
return op, NoRewrite
}
if len(qg.Tables) > 1 {
panic(vterrors.VT12001("DELETE on reference table with join"))
panic(vterrors.VT12001("DML on reference table with join"))
}
for _, tbl := range qg.Tables {
if tbl.ID != tblID {
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtgate/planbuilder/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ func (s *planTestSuite) testFile(filename string, vschema *vschemawrapper.VSchem
current := PlanTest{
Comment: tcase.Comment,
Query: tcase.Query,
SkipE2E: true,
SkipE2E: tcase.SkipE2E,
}
vschema.Version = Gen4
out := getPlanOutput(tcase, vschema, render)
Expand Down
7 changes: 6 additions & 1 deletion go/vt/vtgate/planbuilder/testdata/unsupported_cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,12 @@
{
"comment": "reference table delete with join",
"query": "delete r from user u join ref_with_source r on u.col = r.col",
"plan": "VT12001: unsupported: DELETE on reference table with join"
"plan": "VT12001: unsupported: DML on reference table with join"
},
{
"comment": "reference table update with join",
"query": "update user u join ref_with_source r on u.col = r.col set r.col = 5",
"plan": "VT12001: unsupported: DML on reference table with join"
},
{
"comment": "group_concat unsupported when needs full evaluation at vtgate with more than 1 column",
Expand Down

0 comments on commit 3c28e2f

Please sign in to comment.