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