Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,9 @@ func (s *testParserSuite) TestParser0(c *C) {

// For quote identifier
{"select `a`, `a.b`, `a b` from t", true},

// For unquoted identifier
{"create table MergeContextTest$Simple (value integer not null, primary key (value))", true},
}

for _, t := range table {
Expand Down
2 changes: 1 addition & 1 deletion parser/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ user {u}{s}{e}{r}
using {u}{s}{i}{n}{g}

idchar0 [a-zA-Z_]
idchars {idchar0}|[0-9]
idchars {idchar0}|[0-9$] // See: https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
ident {idchar0}{idchars}*

user_var "@"{ident}
Expand Down