Commit 647f4474 authored by Aurel's avatar Aurel

2008-03-25 aurel

* z_count_results must retrieve all rows by default as limit is explicitly given by catalog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20109 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27463715
...@@ -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>
...@@ -44,6 +41,12 @@ ...@@ -44,6 +41,12 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>limit_expression</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>select_expression</string> </key> <key> <string>select_expression</string> </key>
<value> <value>
...@@ -75,12 +78,13 @@ ...@@ -75,12 +78,13 @@
<key> <string>_keys</string> </key> <key> <string>_keys</string> </key>
<value> <value>
<list> <list>
<string>from_table_list</string> <string>from_table_list</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>selection_domain</string> <string>selection_domain</string>
<string>selection_report</string> <string>selection_report</string>
<string>limit_expression</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -97,12 +101,13 @@ ...@@ -97,12 +101,13 @@
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>from_table_list\n <value> <string>from_table_list\r\n
where_expression\n where_expression\r\n
select_expression\n select_expression\r\n
group_by_expression\n group_by_expression\r\n
selection_domain\n selection_domain\r\n
selection_report</string> </value> selection_report\r\n
limit_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -118,9 +123,7 @@ selection_report</string> </value> ...@@ -118,9 +123,7 @@ selection_report</string> </value>
</item> </item>
<item> <item>
<key> <string>connection_hook</string> </key> <key> <string>connection_hook</string> </key>
<value> <value> <string></string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>connection_id</string> </key> <key> <string>connection_id</string> </key>
...@@ -136,7 +139,7 @@ selection_report</string> </value> ...@@ -136,7 +139,7 @@ selection_report</string> </value>
</item> </item>
<item> <item>
<key> <string>max_rows_</string> </key> <key> <string>max_rows_</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>src</string> </key> <key> <string>src</string> </key>
...@@ -182,6 +185,9 @@ ORDER BY\n ...@@ -182,6 +185,9 @@ ORDER BY\n
GROUP BY\n GROUP BY\n
<dtml-var group_by_expression>\n <dtml-var group_by_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if limit_expression>\n
LIMIT <dtml-var "limit_expression">\n
</dtml-if>\n
]]></string> </value> ]]></string> </value>
...@@ -191,9 +197,11 @@ GROUP BY\n ...@@ -191,9 +197,11 @@ GROUP BY\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>
...@@ -252,13 +260,16 @@ WHERE\n ...@@ -252,13 +260,16 @@ WHERE\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 sort_on>\n
ORDER BY\n
<dtml-var sort_on>\n
</dtml-if>\n
<dtml-if group_by_expression>\n <dtml-if group_by_expression>\n
GROUP BY\n GROUP BY\n
<dtml-var group_by_expression>\n <dtml-var group_by_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if sort_on>\n <dtml-if limit_expression>\n
ORDER BY\n LIMIT <dtml-var "limit_expression">\n
<dtml-var sort_on>\n
</dtml-if>\n </dtml-if>\n
......
2008-03-25 aurel
* z_count_results must retrieve all rows by default as limit is explicitly given by catalog
2007-06-22 yo 2007-06-22 yo
* Remove keyword keys, because there is no way to disable them later. * Remove keyword keys, because there is no way to disable them later.
......
100 104
\ No newline at end of file \ No newline at end of file
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