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