ygrek / sqlgg

SQL Guided (code) Generator
https://ygrek.org/p/sqlgg/
GNU General Public License v2.0
62 stars 20 forks source link

sql: parse Mysql INTERVALs #23

Closed cyberhuman closed 9 years ago

cyberhuman commented 9 years ago

Basic support for Mysql's INTERVAL keyword. Any clues what to do about "year", INTERVAL_UNIT conflicting with "year", T_DATETIME?

ygrek commented 9 years ago

as sqlgg is moving towards proper sql parser with AST - will need to distinguish INTERVAL_UNITs anyway - should add separate token for each keyword and then can reuse year token

cyberhuman commented 9 years ago

Updated accordingly.

ygrek commented 9 years ago

d1fa845dd36ff279285e7429fcddc5960dbdf44b Thanks