sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

'B IS NULL' is not considered as a comparison

Open karimelghazouly opened this issue 3 years ago • 0 comments

Is there a reason why IS NULL keyword is not considered as comparison ?

>>> x = "something IS NULL"
>>> parsed = sqlparse.parse(x)[0]
>>> parsed.tokens
[<Identifier 'someth...' at 0x7FDC36644190>, <Whitespace ' ' at 0x7FDC366437C0>, <Keyword 'IS' at 0x7FDC36643820>, <Whitespace ' ' at 0x7FDC36643880>, <Keyword 'NULL' at 0x7FDC366438E0>]
>>> 

karimelghazouly avatar Jun 01 '22 16:06 karimelghazouly