Revision 5826
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
1143 | 1143 |
total_n += n |
1144 | 1144 |
return expr, total_n |
1145 | 1145 |
|
1146 |
expr = expr.replace('(NULL IS NULL)', true_expr)
|
|
1147 |
expr = expr.replace('(NULL IS NOT NULL)', false_expr)
|
|
1146 |
expr = expr.replace('NULL IS NULL', true_expr)
|
|
1147 |
expr = expr.replace('NULL IS NOT NULL', false_expr)
|
|
1148 | 1148 |
expr = simplify_recursive(simplify_logic_ops, expr) |
1149 | 1149 |
return expr |
1150 | 1150 |
|
Also available in: Unified diff
sql_gen.py: simplify_expr(): Don't require () around NULL IS NULL and NULL IS NOT NULL because extra parentheses are not provided in index conditions, only in check constraint conditions