You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found a problem when alasql parses the query string. When trying to give a column an alias with spaces I got errors when using " and '. I think it would be useful to explain in the wiki that aliases can only be quoted like this:
SELECT SUM(I_dont_like_this_name) AS `Fancy Name` FROM table_name
For reference, the error messages I got where, in Chromium SyntaxError: Unexpected identifier, and in Firefox SyntaxError: missin ] in index expression
Activity
agershun commentedon Feb 26, 2016
Hi Lucas,
[ ]to enclose these 'multiword' name (not only backquotes) like :I will check the parser grammar rules for this syntax.
loque commentedon Feb 26, 2016
Hi @agershun,
Good to know about the
[]!Exactly, the syntax in the following examples did not work:
Btw, I really appreciate the work you've done with AlaSQL!
Add support for quoted table alias to close #606 (#2306)
mathiasrw commentedon Dec 15, 2025
Fix released as part of v4.14.0