We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088e17b commit 09b15e4Copy full SHA for 09b15e4
CHANGELOG
@@ -9,3 +9,4 @@
9
1.2.2 feat: add support for "`" quoted alias, pr: #33
10
1.3.0 fix tableFactor alias bug. AST changed in tableFactor. #34
11
1.4.0 fix bug `using ' & " for column alias?` #40 #44
12
+1.4.1 hogfix "support quoted alias: multiple alias and orderby support"
README.md
@@ -10,7 +10,7 @@ sql grammar follows https://dev.mysql.com/doc/refman/5.7/en/select.html
## news
13
-- Fix bug `using ' & " for column alias?` since v1.4.0 [#40](https://github.com/JavaScriptor/js-sql-parser/issues/40), [#44](https://github.com/JavaScriptor/js-sql-parser/issues/44)
+- Fix bug `using ' & " for column alias?` since v1.4.1 [#40](https://github.com/JavaScriptor/js-sql-parser/issues/40), [#44](https://github.com/JavaScriptor/js-sql-parser/issues/44)
14
- Fix bug tableFactor alias since v1.3.0 [#34](https://github.com/JavaScriptor/js-sql-parser/issues/34)
15
- Add support for "`" quoted alias since v1.2.2. [#33](https://github.com/JavaScriptor/js-sql-parser/issues/33)
16
- Fix bug stringify keyword `having` since v1.2.1. [#29](https://github.com/JavaScriptor/js-sql-parser/issues/29)
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "js-sql-parser",
3
- "version": "1.4.0",
+ "version": "1.4.1",
4
"description": "",
5
"main": "./dist/parser/sqlParser.js",
6
"scripts": {
src/sqlParser.jison
@@ -128,7 +128,7 @@ UNION return 'UNION'
128
\. return 'DOT'
129
["][a-zA-Z_\u4e00-\u9fa5][a-zA-Z0-9_\u4e00-\u9fa5]*["] return 'STRING'
130
['][a-zA-Z_\u4e00-\u9fa5][a-zA-Z0-9_\u4e00-\u9fa5]*['] return 'STRING'
131
-[`].+[`] return 'IDENTIFIER'
+([`])(?:(?=(\\?))2円.)*?1円 return 'IDENTIFIER'
132
133
<<EOF>> return 'EOF'
134
. return 'INVALID'
test/main.test.js
@@ -428,7 +428,7 @@ describe('select grammar support', function () {
428
testParser('select a as \'"A#A\' from z order by \'"A#A\' desc');
429
});
430
431
- it.only('test IDENTIFIER', function () {
+ it('test IDENTIFIER', function () {
432
testParser('select `aa#sfs`(a) as \'A A\' from z');
433
434
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments