Skip to content

Commit

Permalink
Merge pull request #7069 from nvanbenschoten/nvanbenschoten/fixParsing
Browse files Browse the repository at this point in the history
sql/parser: Add FAMILY as reserved keyword to avoid ambiguity
  • Loading branch information
nvanbenschoten committed Jun 6, 2016
2 parents 7365734 + 39ce7de commit 17283ef
Show file tree
Hide file tree
Showing 5 changed files with 2,323 additions and 2,265 deletions.
7 changes: 7 additions & 0 deletions sql/parser/parse_test.go
Expand Up @@ -868,6 +868,13 @@ ALTER INDEX a IF EXISTS RENAME TO b
`syntax error at or near "EOF"
DROP INDEX a
^
`,
},
{
`ALTER TABLE t RENAME COLUMN x TO family`,
`syntax error at or near "family"
ALTER TABLE t RENAME COLUMN x TO family
^
`,
},
}
Expand Down
1 change: 1 addition & 0 deletions sql/parser/reserved_keywords.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 17283ef

Please sign in to comment.