nene / sql-parser-cst

Parses SQL into Concrete Syntax Tree (CST)
GNU General Public License v2.0
116 stars 7 forks source link

Fix `cstVisitor`'s node check for `null` values #9

Closed osaton closed 1 year ago

osaton commented 1 year ago

NullLiteral.value is null which would cause the cstVisitor to throw.

Thanks for developing this parser! Looks really promising 👍

nene commented 1 year ago

Thanks for the fix. This "null is an object" thing always manages to trip me up :D

Refactored the code to avoid the same mistake in the future.

Released the fix in 0.9.3.