Commit a6179656 authored by Vincent Pelletier's avatar Vincent Pelletier

Handle from_expression when provided (usualy by ZSQLCatalog product, see commit 22153).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22154 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d966bf52
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="SQL" module="Products.ZSQLMethods.SQL"/>
<string>Products.ZSQLMethods.SQL</string> <tuple/>
<string>SQL</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -32,6 +29,12 @@ ...@@ -32,6 +29,12 @@
<key> <string>_data</string> </key> <key> <string>_data</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>from_expression</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>from_table_list</string> </key> <key> <string>from_table_list</string> </key>
<value> <value>
...@@ -98,15 +101,16 @@ ...@@ -98,15 +101,16 @@
<key> <string>_keys</string> </key> <key> <string>_keys</string> </key>
<value> <value>
<list> <list>
<string>selection_domain</string> <string>selection_domain</string>
<string>selection_report</string> <string>selection_report</string>
<string>where_expression</string> <string>where_expression</string>
<string>select_expression</string> <string>select_expression</string>
<string>group_by_expression</string> <string>group_by_expression</string>
<string>from_table_list</string> <string>from_table_list</string>
<string>sort_on</string> <string>from_expression</string>
<string>limit_expression</string> <string>sort_on</string>
<string>search_mode</string> <string>limit_expression</string>
<string>search_mode</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -129,6 +133,7 @@ where_expression\r\n ...@@ -129,6 +133,7 @@ where_expression\r\n
select_expression\r\n select_expression\r\n
group_by_expression\r\n group_by_expression\r\n
from_table_list:list\r\n from_table_list:list\r\n
from_expression\r\n
sort_on\r\n sort_on\r\n
limit_expression\r\n limit_expression\r\n
search_mode</string> </value> search_mode</string> </value>
...@@ -176,7 +181,11 @@ SELECT DISTINCT\n ...@@ -176,7 +181,11 @@ SELECT DISTINCT\n
<dtml-if select_expression>,<dtml-var select_expression></dtml-if>\n <dtml-if select_expression>,<dtml-var select_expression></dtml-if>\n
\n \n
FROM\n FROM\n
<dtml-if from_expression>\n
<dtml-var from_expression>\n
<dtml-else>\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>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n <dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </dtml-if>\n
...@@ -223,9 +232,11 @@ LIMIT <dtml-var "limit_expression">\n ...@@ -223,9 +232,11 @@ LIMIT <dtml-var "limit_expression">\n
<value> <value>
<object> <object>
<klass> <klass>
<global name="SQL" module="Shared.DC.ZRDB.DA"/> <global name="__newobj__" module="copy_reg"/>
</klass> </klass>
<none/> <tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state> <state>
<dictionary> <dictionary>
<item> <item>
...@@ -257,7 +268,11 @@ SELECT DISTINCT\n ...@@ -257,7 +268,11 @@ SELECT DISTINCT\n
<dtml-if select_expression>,<dtml-var select_expression></dtml-if>\n <dtml-if select_expression>,<dtml-var select_expression></dtml-if>\n
\n \n
FROM\n FROM\n
<dtml-if from_expression>\n
<dtml-var from_expression>\n
<dtml-else>\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>\n
<dtml-if selection_domain>\n <dtml-if selection_domain>\n
<dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n <dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n
<dtml-if expression> , <dtml-var expression> </dtml-if>\n <dtml-if expression> , <dtml-var expression> </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