- Notifications
You must be signed in to change notification settings - Fork47
fix: fix support for quoted alias#37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Also add support for double quote alias
adding |
hello@Capo93 , thanks for the pr! I think it's better to merge |
I tried and it works. In last commit I merge |
hi@Capo93 , thanks for the pr. it's merged and released at 🎉 v1.4.1 🎉. |
Hi,
i found some issue with the support of quoted aliases.
CASE 1: multiple quoted alias
Test result: OK
Select Item expected:
Received:
The RegEx
[`].+[`]
match from first backquote to last backquote. The behavior should be from one backquote to the next. Same issue for next case.CASE 2: quoted alias in orderBy
The 'a' alias in this case is:
A A` from z order by `A A
--
I replace the ReqEx with this:
([`])(?:(?=(\\?))\2.)*?\1
And add quoted_identifier as Identifier (not as String) in expr.
The result in orderby:
Hope my fix are correct and helpfull!
Thanks a lot for this library:)!