xwb1989 / sqlparser

SQL Parser implemented in Go
Apache License 2.0
1.47k stars 238 forks source link

Casting Parse Issue #40

Open Colhodm opened 6 years ago

Colhodm commented 6 years ago

select * from S3Object where cast(age AS int) > 12 This query is flagged as an error, even though it is a valid cast in SQL.

Colhodm commented 6 years ago

Hi also I had a quick question on how to indicate the timestamp dataformat in mySql would something like this work: 2010-01-01T

fireflywang commented 5 years ago

I have encountered this question, so any one can help?

carterharrison commented 4 years ago

@fireflywang @Colhodm Fixed in https://github.com/xwb1989/sqlparser/pull/58