Skip to content

Commit 293549d

Browse files
sqlparser: enforce bare * restriction in grammar (#19585)
Signed-off-by: Arthur Schreiber <arthur@planetscale.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 08df135 commit 293549d

7 files changed

Lines changed: 7370 additions & 7165 deletions

File tree

go/vt/sqlparser/parse_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6635,10 +6635,10 @@ var invalidSQL = []struct {
66356635
output: "syntax error at position 39",
66366636
}, {
66376637
input: "select a, * from t",
6638-
output: "syntax error: unexpected '*' at position 12",
6638+
output: "syntax error at position 12",
66396639
}, {
66406640
input: "select *, * from t",
6641-
output: "syntax error: unexpected '*' at position 12",
6641+
output: "syntax error at position 12",
66426642
}}
66436643

66446644
func TestErrors(t *testing.T) {

0 commit comments

Comments
 (0)