Project

General

Profile

« Previous | Next » 

Revision 5207

sql.py: Expressions: bool_re: Also match parentheses surrounding the boolean value

View differences:

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