Commit ef970354 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Naming convention: SQL should be in big caps.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11873 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba79997d
...@@ -432,10 +432,10 @@ FROM\n ...@@ -432,10 +432,10 @@ FROM\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-var "selection_domain.asSqlJoinExpression()">,\n <dtml-var "selection_domain.asSQLJoinExpression()">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-var "selection_report.asSqlJoinExpression()">,\n <dtml-var "selection_report.asSQLJoinExpression()">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if use_movement_table> movement, </dtml-if>\n <dtml-if use_movement_table> movement, </dtml-if>\n
<dtml-if "stat or omit_input or omit_output or node">\n <dtml-if "stat or omit_input or omit_output or node">\n
...@@ -450,10 +450,10 @@ WHERE\n ...@@ -450,10 +450,10 @@ WHERE\n
AND <dtml-var "query[\'where_expression\']">\n AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression()">\n AND <dtml-var "selection_domain.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if specific_reference> AND (\n <dtml-if specific_reference> AND (\n
catalog.source_reference LIKE\n catalog.source_reference LIKE\n
...@@ -619,10 +619,10 @@ FROM\n ...@@ -619,10 +619,10 @@ FROM\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-var "selection_domain.asSqlJoinExpression()">,\n <dtml-var "selection_domain.asSQLJoinExpression()">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-var "selection_report.asSqlJoinExpression()">,\n <dtml-var "selection_report.asSQLJoinExpression()">,\n
</dtml-if>\n </dtml-if>\n
<dtml-if use_movement_table> movement, </dtml-if>\n <dtml-if use_movement_table> movement, </dtml-if>\n
<dtml-if "stat or omit_input or omit_output or node">\n <dtml-if "stat or omit_input or omit_output or node">\n
...@@ -637,10 +637,10 @@ WHERE\n ...@@ -637,10 +637,10 @@ WHERE\n
AND <dtml-var "query[\'where_expression\']">\n AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression()">\n AND <dtml-var "selection_domain.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
<dtml-if specific_reference> AND (\n <dtml-if specific_reference> AND (\n
catalog.source_reference LIKE\n catalog.source_reference LIKE\n
......
...@@ -284,8 +284,8 @@ FROM\n ...@@ -284,8 +284,8 @@ FROM\n
catalog AS section_bc,\n catalog AS section_bc,\n
category AS section_membership,\n category AS section_membership,\n
catalog AS section,\n catalog AS section,\n
<dtml-if selection_domain><dtml-var "selection_domain.asSqlJoinExpression()">, </dtml-if>\n <dtml-if selection_domain><dtml-var "selection_domain.asSQLJoinExpression()">, </dtml-if>\n
<dtml-if selection_report><dtml-var "selection_report.asSqlJoinExpression()">, </dtml-if>\n <dtml-if selection_report><dtml-var "selection_report.asSQLJoinExpression()">, </dtml-if>\n
<dtml-if where_expression>, category </dtml-if>\n <dtml-if where_expression>, category </dtml-if>\n
stock\n stock\n
LEFT JOIN catalog AS mirror_section\n LEFT JOIN catalog AS mirror_section\n
...@@ -358,10 +358,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n ...@@ -358,10 +358,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression()">\n AND <dtml-var "selection_domain.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
ORDER BY\n ORDER BY\n
stock.date, transaction_line.uid\n stock.date, transaction_line.uid\n
...@@ -428,8 +428,8 @@ FROM\n ...@@ -428,8 +428,8 @@ FROM\n
catalog AS section_bc,\n catalog AS section_bc,\n
category AS section_membership,\n category AS section_membership,\n
catalog AS section,\n catalog AS section,\n
<dtml-if selection_domain><dtml-var "selection_domain.asSqlJoinExpression()">, </dtml-if>\n <dtml-if selection_domain><dtml-var "selection_domain.asSQLJoinExpression()">, </dtml-if>\n
<dtml-if selection_report><dtml-var "selection_report.asSqlJoinExpression()">, </dtml-if>\n <dtml-if selection_report><dtml-var "selection_report.asSQLJoinExpression()">, </dtml-if>\n
<dtml-if where_expression>, category </dtml-if>\n <dtml-if where_expression>, category </dtml-if>\n
stock\n stock\n
LEFT JOIN catalog AS mirror_section\n LEFT JOIN catalog AS mirror_section\n
...@@ -502,10 +502,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n ...@@ -502,10 +502,10 @@ WHERE stock.node_uid = <dtml-var node_uid>\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression()">\n AND <dtml-var "selection_domain.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
ORDER BY\n ORDER BY\n
stock.date, transaction_line.uid\n stock.date, transaction_line.uid\n
......
...@@ -142,12 +142,12 @@ SELECT\n ...@@ -142,12 +142,12 @@ SELECT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -157,12 +157,12 @@ WHERE\n ...@@ -157,12 +157,12 @@ WHERE\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -216,12 +216,12 @@ SELECT\n ...@@ -216,12 +216,12 @@ SELECT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -231,12 +231,12 @@ WHERE\n ...@@ -231,12 +231,12 @@ WHERE\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
......
...@@ -178,12 +178,12 @@ SELECT DISTINCT\n ...@@ -178,12 +178,12 @@ SELECT DISTINCT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -194,12 +194,12 @@ WHERE \n ...@@ -194,12 +194,12 @@ WHERE \n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -257,12 +257,12 @@ SELECT DISTINCT\n ...@@ -257,12 +257,12 @@ SELECT DISTINCT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -273,12 +273,12 @@ WHERE \n ...@@ -273,12 +273,12 @@ WHERE \n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
......
...@@ -260,9 +260,9 @@ FROM\n ...@@ -260,9 +260,9 @@ FROM\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>,\n <dtml-if selection_domain>,\n
<dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>,\n <dtml-if selection_report>,\n
<dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, catalog as node, catalog as resource\n , catalog as node, catalog as resource\n
\n \n
WHERE\n WHERE\n
...@@ -313,11 +313,11 @@ WHERE\n ...@@ -313,11 +313,11 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'stock\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'stock\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
...@@ -397,9 +397,9 @@ FROM\n ...@@ -397,9 +397,9 @@ FROM\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>,\n <dtml-if selection_domain>,\n
<dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>,\n <dtml-if selection_report>,\n
<dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, catalog as node, catalog as resource\n , catalog as node, catalog as resource\n
\n \n
WHERE\n WHERE\n
...@@ -450,11 +450,11 @@ WHERE\n ...@@ -450,11 +450,11 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'stock\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'stock\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
......
...@@ -256,8 +256,8 @@ FROM\n ...@@ -256,8 +256,8 @@ FROM\n
, <dtml-var table_item> AS <dtml-var table_key>\n , <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, catalog as node, catalog as resource\n , catalog as node, catalog as resource\n
\n \n
WHERE\n WHERE\n
...@@ -313,11 +313,11 @@ WHERE\n ...@@ -313,11 +313,11 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'stock\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'stock\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
GROUP BY\n GROUP BY\n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
...@@ -394,8 +394,8 @@ FROM\n ...@@ -394,8 +394,8 @@ FROM\n
, <dtml-var table_item> AS <dtml-var table_key>\n , <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, catalog as node, catalog as resource\n , catalog as node, catalog as resource\n
\n \n
WHERE\n WHERE\n
...@@ -451,11 +451,11 @@ WHERE\n ...@@ -451,11 +451,11 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'stock\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'stock\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
GROUP BY\n GROUP BY\n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
......
...@@ -697,8 +697,8 @@ FROM\n ...@@ -697,8 +697,8 @@ FROM\n
, <dtml-var table_item> AS <dtml-var table_key>\n , <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, catalog as node, catalog as resource\n , catalog as node, catalog as resource\n
\n \n
WHERE\n WHERE\n
...@@ -754,11 +754,11 @@ WHERE\n ...@@ -754,11 +754,11 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'stock\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'stock\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
GROUP BY\n GROUP BY\n
...@@ -854,8 +854,8 @@ FROM\n ...@@ -854,8 +854,8 @@ FROM\n
, <dtml-var table_item> AS <dtml-var table_key>\n , <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n </dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, catalog as node, catalog as resource\n , catalog as node, catalog as resource\n
\n \n
WHERE\n WHERE\n
...@@ -911,11 +911,11 @@ WHERE\n ...@@ -911,11 +911,11 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'stock\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'stock\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
GROUP BY\n GROUP BY\n
......
...@@ -407,8 +407,8 @@ FROM\n ...@@ -407,8 +407,8 @@ FROM\n
<dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n <dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n
</dtml-in>\n </dtml-in>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, item\n , item\n
\n \n
\n \n
...@@ -456,11 +456,11 @@ WHERE\n ...@@ -456,11 +456,11 @@ WHERE\n
\n \n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'item\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'item\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
...@@ -526,8 +526,8 @@ FROM\n ...@@ -526,8 +526,8 @@ FROM\n
<dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n <dtml-if expr="table_key != \'item\'">, <dtml-var table_item> AS <dtml-var table_key></dtml-if>\n
</dtml-in>\n </dtml-in>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
, item\n , item\n
\n \n
\n \n
...@@ -575,11 +575,11 @@ WHERE\n ...@@ -575,11 +575,11 @@ WHERE\n
\n \n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression(join_table=\'item\',\n AND <dtml-var "selection_domain.asSQLExpression(join_table=\'item\',\n
join_column=\'node_uid\')">\n join_column=\'node_uid\')">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n AND <dtml-var "selection_report.asSQLExpression(strict_membership=1)">\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
......
...@@ -271,8 +271,8 @@ FROM\n ...@@ -271,8 +271,8 @@ FROM\n
, <dtml-var sequence-item> AS <dtml-var sequence-key>\n , <dtml-var sequence-item> AS <dtml-var sequence-key>\n
</dtml-in>\n </dtml-in>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
\n \n
WHERE\n WHERE\n
child.uid = stock.uid\n child.uid = stock.uid\n
...@@ -337,10 +337,10 @@ WHERE\n ...@@ -337,10 +337,10 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression()">\n AND <dtml-var "selection_domain.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression()">\n AND <dtml-var "selection_report.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_uids>\n <dtml-if selection_uids>\n
AND\n AND\n
...@@ -414,8 +414,8 @@ FROM\n ...@@ -414,8 +414,8 @@ FROM\n
, <dtml-var sequence-item> AS <dtml-var sequence-key>\n , <dtml-var sequence-item> AS <dtml-var sequence-key>\n
</dtml-in>\n </dtml-in>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_domain>, <dtml-var "selection_domain.asSQLJoinExpression()"> </dtml-if>\n
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>\n <dtml-if selection_report>, <dtml-var "selection_report.asSQLJoinExpression()"> </dtml-if>\n
\n \n
WHERE\n WHERE\n
child.uid = stock.uid\n child.uid = stock.uid\n
...@@ -480,10 +480,10 @@ WHERE\n ...@@ -480,10 +480,10 @@ WHERE\n
</dtml-if>\n </dtml-if>\n
\n \n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
AND <dtml-var "selection_domain.asSqlExpression()">\n AND <dtml-var "selection_domain.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression()">\n AND <dtml-var "selection_report.asSQLExpression()">\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_uids>\n <dtml-if selection_uids>\n
AND\n AND\n
......
...@@ -142,12 +142,12 @@ SELECT\n ...@@ -142,12 +142,12 @@ SELECT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -157,12 +157,12 @@ WHERE\n ...@@ -157,12 +157,12 @@ WHERE\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -216,12 +216,12 @@ SELECT\n ...@@ -216,12 +216,12 @@ SELECT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -231,12 +231,12 @@ WHERE\n ...@@ -231,12 +231,12 @@ WHERE\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
......
...@@ -178,12 +178,12 @@ SELECT DISTINCT\n ...@@ -178,12 +178,12 @@ SELECT DISTINCT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -194,12 +194,12 @@ WHERE \n ...@@ -194,12 +194,12 @@ WHERE \n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -257,12 +257,12 @@ SELECT DISTINCT\n ...@@ -257,12 +257,12 @@ SELECT DISTINCT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -273,12 +273,12 @@ WHERE \n ...@@ -273,12 +273,12 @@ WHERE \n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
......
...@@ -142,12 +142,12 @@ SELECT\n ...@@ -142,12 +142,12 @@ SELECT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -157,12 +157,12 @@ WHERE\n ...@@ -157,12 +157,12 @@ WHERE\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -216,12 +216,12 @@ SELECT\n ...@@ -216,12 +216,12 @@ SELECT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -231,12 +231,12 @@ WHERE\n ...@@ -231,12 +231,12 @@ WHERE\n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
......
...@@ -178,12 +178,12 @@ SELECT DISTINCT\n ...@@ -178,12 +178,12 @@ SELECT DISTINCT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -194,12 +194,12 @@ WHERE \n ...@@ -194,12 +194,12 @@ WHERE \n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -257,12 +257,12 @@ SELECT DISTINCT\n ...@@ -257,12 +257,12 @@ SELECT DISTINCT\n
FROM\n FROM\n
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlJoinExpression()">\n <dtml-let expression="selection_domain.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlJoinExpression()">\n <dtml-let expression="selection_report.asSQLJoinExpression()">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
...@@ -273,12 +273,12 @@ WHERE \n ...@@ -273,12 +273,12 @@ WHERE \n
AND <dtml-var where_expression>\n AND <dtml-var where_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="selection_domain.asSqlExpression()">\n <dtml-let expression="selection_domain.asSQLExpression()">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
<dtml-if selection_report>\n <dtml-if selection_report>\n
<dtml-let expression="selection_report.asSqlExpression(strict_membership=1)">\n <dtml-let expression="selection_report.asSQLExpression(strict_membership=1)">\n
<dtml-if expression> AND <dtml-var expression> </dtml-if>\n <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
</dtml-let>\n </dtml-let>\n
</dtml-if>\n </dtml-if>\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment