ms705 / nom-sql

Rust SQL parser written using nom
MIT License
232 stars 41 forks source link

Support stand-alone HAVING clauses #71

Open soulstompp opened 2 years ago

soulstompp commented 2 years ago

Currently the parser has the HAVING clause parsed as part of the GROUP BY clause when it was valid, this is needed in cases where a condition on a calculated value is needed and a GROUP BY is inappropriate such as SELECT 1 + 2 as adder HAVING adder > 2.