Closed tbrielle closed 9 years ago
That is right. Your SQL is not valid. Databaseobject names or aliases are not quoted using single quotation marks. Or is there a database that supports this? JSqlParser supports [colname], "colname", and colname
(apostroph used by MSAccess).
It seems to be supported in TSQL
Agreed. Never saw that before, but it is very non standard und a deprecated feature:
https://msdn.microsoft.com/en-us/library/bb510662%28v=sql.110%29.aspx "String literals as column aliases"
Additional you could create so much confusion.
select 'test' from mytable
Is test a column or a string literal.
JSqlParser will not support this.
Tobias
OK. Thank you.
solved #583
Tested with JSQLParser 0.9.3 (and JSQLParser 0.9.4-SNAPSHOT at date of writing)
The following queries are valid in MSSQL :
However the parsing of the last one fails with the exception: