Skip to content

Commit 98c3fb6

Browse files
committed
Remove AUTO_INCREMENT from reserved keywords
1 parent 7ac42cd commit 98c3fb6

File tree

3 files changed

+2747
-2719
lines changed

3 files changed

+2747
-2719
lines changed

parse_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ var (
7070
input: "select /* double */ /* comment */ 1 from t",
7171
}, {
7272
input: "select /* back-quote keyword */ `By` from t",
73+
}, {
74+
input: "select auto_increment + 5000 from information_schema.tables",
75+
output: "select `auto_increment` + 5000 from information_schema.`tables`",
7376
}, {
7477
input: "select /* back-quote num */ `2a` from t",
7578
}, {

0 commit comments

Comments
 (0)