nom-sql
nom-sql copied to clipboard
ensure IS/IS NOT NULL parses correctly
This is an attempt at fixing https://github.com/ms705/nom-sql/issues/22 and followed the suggestion mentioned in https://github.com/ms705/nom-sql/issues/22#issuecomment-421404638 for the solution. I added Operator::IsNot in order to handle the negative condition as well.
I included a test for = NULL and != NULL.
Hopefully this fits with the solution you were looking for. If not, please let me know how you would like for me to improve upon it.