Skip to content

Commit 82b651f

Browse files
Support parsing database entities using a hyphen character
1 parent 7238d52 commit 82b651f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/sql-parser/base/fromClauseParser.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sql-parser/base/parser.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sql-parser/parser.pegjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ ident_name
843843

844844
ident_start = [A-Za-z_]
845845

846-
ident_part = [A-Za-z0-9_]
846+
ident_part = [A-Za-z0-9_-]
847847

848848
// to support column name like `cf1:name` in hbase
849849
// Allow square brackets and quote to support nested columns with subscripts for example `books['title'].chapters[12].paragraphs`

0 commit comments

Comments
 (0)