feat: add support for quoted alias by eortiz-tracktik · Pull Request #33 · JavaScriptor/js-sql-parser
@albin3 thanks for the quick response.
We have tried to use it, but is limited to some specific characters and we can't use some of the special characters we have put on the tests.
it('support quoted alias', function() {
testParser('select a as `A-A` from b limit 2;');
testParser('select a as `A#A` from b limit 2;');
testParser('select a as `A?A` from b limit 2;');
testParser('select a as `A/B` from b limit 2;');
testParser('select a as `A.A` from b limit 2;');
testParser('select a as `A|A` from b limit 2;');
testParser('select a as `A A` from b limit 2;');
});
I saw that there was already the concept of QUOTED_IDENTIFIER but was also limited to certain characters.
I understand why we need to limit the allowed characters on regular identifiers, but if it's quoted I think we don't need to have this restriction.