Revision 5207
Added by Aaron Marcuse-Kubitza about 12 years ago
sql.py | ||
---|---|---|
1021 | 1021 |
#### Expressions |
1022 | 1022 |
|
1023 | 1023 |
bool_re = r'(?:true|false)' |
1024 |
bool_re = r'(?:'+bool_re+r'|\('+bool_re+r'\))' |
|
1024 | 1025 |
|
1025 | 1026 |
def simplify_expr(expr): |
1026 | 1027 |
expr = expr.replace('(NULL IS NULL)', 'true') |
Also available in: Unified diff
sql.py: Expressions: bool_re: Also match parentheses surrounding the boolean value