sqlparse
sqlparse copied to clipboard
'B IS NULL' is not considered as a comparison
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>]
>>>