Revision 5372
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql_gen.py | ||
---|---|---|
1106 | 1106 |
return '(?:'+expr_re+op_re+value_re+'|'+value_re+op_re+expr_re+')' |
1107 | 1107 |
|
1108 | 1108 |
not_re = r'\bNOT ' |
1109 |
not_false_re = not_re+false_re |
|
1110 |
not_true_re = not_re+true_re |
|
1109 |
not_false_re = not_re+false_re+r'\b'
|
|
1110 |
not_true_re = not_re+true_re+r'\b'
|
|
1111 | 1111 |
and_false_re = logic_op_re('AND', false_re, atom_re) |
1112 | 1112 |
and_false_not_true_re = '(?:'+not_true_re+'|'+and_false_re+')' |
1113 | 1113 |
and_true_re = logic_op_re('AND', true_re) |
Also available in: Unified diff
sql_gen.py: not_false_re, not_true_re: Appended \b to ensure that true/false is only matched as a single word