1 |
2010-11-24 Bernhard Herzog <[email protected]> |
2010-11-24 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* formed/formed/plugins/export/rules_sh.py (sql_OperatorUnary): |
4 |
|
Put parentheses around the comparison for the KNOWN operator in |
5 |
|
the generated SQL to ensure correct evaluation order. |
6 |
|
|
7 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* formed/formed/plugins/export/rules_sh.py (binary_operator_map): |
10 |
|
New. Map binary formed expr operators to their SQL counterparts. |
11 |
|
(sql_OperatorBinary): Use binary_operator_map instead of a cascade |
12 |
|
of if-statements with lots of code duplication. Also, put |
13 |
|
parentheses around the resulting SQL expression to make sure the |
14 |
|
expression is correctly. This fixes a problem with WASKO tagging |
15 |
|
rules, where the a FormEd expression of the form like "2 1 1980 |
16 |
|
date 1 1 1980 date - 93 *" would be incorrectly converted to the |
17 |
|
SQL expression "93 * '1980-01-02'::date - '1980-01-01'::date" |
18 |
|
|
19 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
20 |
|
|
21 |
* formed/formed/plugins/export/rules_sh.py: Fix formatting. |
* formed/formed/plugins/export/rules_sh.py: Fix formatting. |
22 |
|
|
23 |
2010-11-15 Torsten Irlaender <[email protected]> |
2010-11-15 Torsten Irlaender <[email protected]> |