Revision 5343
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
1022 | 1022 |
|
1023 | 1023 |
def paren_re(re_): return r'(?:'+re_+r'|\('+re_+r'\))' |
1024 | 1024 |
|
1025 |
bool_re = r'(?:true|false)' |
|
1026 |
bool_re = paren_re(bool_re) |
|
1025 |
bool_re = paren_re(r'(?:true|false)') |
|
1027 | 1026 |
|
1028 | 1027 |
def simplify_expr(expr): |
1029 | 1028 |
expr = expr.replace('(NULL IS NULL)', 'true') |
Also available in: Unified diff
sql.py: bool_re: Use new paren_re()