taozhi8833998 / node-sql-parser

Parse simple SQL statements into an abstract syntax tree (AST) with the visited tableList and convert it back to SQL
https://taozhi8833998.github.io/node-sql-parser/
Apache License 2.0
750 stars 172 forks source link

Support Column "as" to be ValueExpr #1969

Closed shgotlib closed 2 weeks ago

shgotlib commented 2 weeks ago

In BigQuery and mysql, the alias can be wrapped with backticks and then the as evaluates as ValueExpr with type "backticks_quote_string"

taozhi8833998 commented 2 weeks ago

@shgotlib Thanks for the PR, merged it.

shgotlib commented 2 weeks ago

Thank you for the project!