Revision 5357
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql.py | ||
---|---|---|
1046 | 1046 |
expr = expr.replace('(NULL IS NOT NULL)', 'false') |
1047 | 1047 |
expr = simplify_recursive( |
1048 | 1048 |
lambda s: re.subn(logic_op_re('OR', bool_re), r'', s), expr) |
1049 |
expr = simplify_parens(expr) |
|
1050 | 1049 |
return expr |
1051 | 1050 |
|
1052 | 1051 |
name_re = r'(?:\w+|(?:"[^"]*")+)' |
Also available in: Unified diff
sql.py: simplify_expr(): Removed final simplify_parens() because this is now done by simplify_recursive()