Skip to content

Commit e58dbc5

Browse files
committed
fix removing quotes in aliases
1 parent b51a867 commit e58dbc5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hackolade/sql-select-statement-parser",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "",
55
"main": "index.js",
66
"author": "Hackolade",

selectStatementListener.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Listener extends SQLSelectParserListener {
3838
}
3939

4040
exitSelectAlias(ctx) {
41-
ctx.alias = (ctx.identifier() || ctx.textStringLiteral()).getText();
41+
ctx.alias = removeQuotes((ctx.identifier() || ctx.textStringLiteral()).getText());
4242
}
4343

4444
exitTableWild(ctx) {
@@ -109,7 +109,7 @@ class Listener extends SQLSelectParserListener {
109109
}
110110

111111
exitTableAlias(ctx) {
112-
ctx.alias = ctx.identifier().getText();
112+
ctx.alias = removeQuotes(ctx.identifier().getText());
113113
}
114114

115115
};

0 commit comments

Comments
 (0)