Revision 5351
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql.py | ||
---|---|---|
1038 | 1038 |
expr = expr.replace('(NULL IS NULL)', 'true') |
1039 | 1039 |
expr = expr.replace('(NULL IS NOT NULL)', 'false') |
1040 | 1040 |
expr = re.sub(logic_op_re('OR', bool_re), r'', expr) |
1041 |
expr = regexp.sub_nested(r'\((\([^()]*\))\)', r'\1', expr)
|
|
1041 |
expr = simplify_parens(expr)
|
|
1042 | 1042 |
return expr |
1043 | 1043 |
|
1044 | 1044 |
name_re = r'(?:\w+|(?:"[^"]*")+)' |
Also available in: Unified diff
sql.py: simplify_expr(): Use new simplify_parens()