sqlformat icon indicating copy to clipboard operation
sqlformat copied to clipboard

Support of literal values as dedicated literal types

Open dnnancy opened this issue 11 years ago • 0 comments

It would be ideal that the literal values in SQL script are parsed as dedicated literal types, such as StringLiteral, NumberLiteral, BooleanLiteral, etc. Currently they seem to be all parsed as IdentifierExpression.

For instance, with the following script:

select fielda 
from table1 t1
where t1.fieldd = 10.0 or t1.fieldc = 'abc'

Ideally, 10.0 and 'abc' can be parsed as NumberLiteral and StringLiteral, and so on.

dnnancy avatar Aug 28 '13 18:08 dnnancy