Commit 9c94ae13 authored by Julien Muchembled's avatar Julien Muchembled

Remove default limit on builders' ZSQL select methods

Proper way is to call a global builder with a 'limit' parameter.
parent a7e6e26d
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
<value> <string>from_table_list:list\r\n <value> <string>from_table_list:list\r\n
where_expression\r\n where_expression\r\n
order_by_expression\r\n order_by_expression\r\n
max_movement_date</string> </value> max_movement_date\r\n
limit_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -55,11 +56,11 @@ max_movement_date</string> </value> ...@@ -55,11 +56,11 @@ max_movement_date</string> </value>
</item> </item>
<item> <item>
<key> <string>max_cache_</string> </key> <key> <string>max_cache_</string> </key>
<value> <int>100</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>max_rows_</string> </key> <key> <string>max_rows_</string> </key>
<value> <int>1000</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>src</string> </key> <key> <string>src</string> </key>
...@@ -107,6 +108,9 @@ WHERE\n ...@@ -107,6 +108,9 @@ WHERE\n
\n \n
<dtml-if order_by_expression>\n <dtml-if order_by_expression>\n
ORDER BY <dtml-var order_by_expression>\n ORDER BY <dtml-var order_by_expression>\n
</dtml-if>\n
<dtml-if limit_expression>\n
LIMIT <dtml-var limit_expression>\n
</dtml-if> </dtml-if>
]]></string> </value> ]]></string> </value>
......
1506 1507
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>from_table_list:list\r\n <value> <string>from_table_list:list\r\n
where_expression\r\n where_expression\r\n
order_by_expression</string> </value> order_by_expression\r\n
limit_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -46,11 +47,11 @@ order_by_expression</string> </value> ...@@ -46,11 +47,11 @@ order_by_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>max_cache_</string> </key> <key> <string>max_cache_</string> </key>
<value> <int>100</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>max_rows_</string> </key> <key> <string>max_rows_</string> </key>
<value> <int>1000</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>src</string> </key> <key> <string>src</string> </key>
...@@ -77,12 +78,14 @@ WHERE\n ...@@ -77,12 +78,14 @@ WHERE\n
1=1\n 1=1\n
<dtml-if where_expression>\n <dtml-if where_expression>\n
AND <dtml-var where_expression> \n AND <dtml-var where_expression> \n
</dtml-if>\n </dtml-if> AND simulation_movement.uid = catalog.uid\n
AND simulation_movement.uid = catalog.uid\n
AND category.category_uid is NULL\n AND category.category_uid is NULL\n
\n \n
<dtml-if order_by_expression>\n <dtml-if order_by_expression>\n
ORDER BY <dtml-var order_by_expression>\n ORDER BY <dtml-var order_by_expression>\n
</dtml-if>\n
<dtml-if limit_expression>\n
LIMIT <dtml-var limit_expression>\n
</dtml-if> </dtml-if>
]]></string> </value> ]]></string> </value>
......
180 181
\ No newline at end of file \ No newline at end of file
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>from_table_list:list\r\n <value> <string>from_table_list:list\r\n
where_expression\r\n where_expression\r\n
order_by_expression</string> </value> order_by_expression\r\n
limit_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -52,11 +53,11 @@ order_by_expression</string> </value> ...@@ -52,11 +53,11 @@ order_by_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>max_cache_</string> </key> <key> <string>max_cache_</string> </key>
<value> <int>100</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>max_rows_</string> </key> <key> <string>max_rows_</string> </key>
<value> <int>100</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>src</string> </key> <key> <string>src</string> </key>
...@@ -92,8 +93,9 @@ WHERE\n ...@@ -92,8 +93,9 @@ WHERE\n
<dtml-if order_by_expression>\n <dtml-if order_by_expression>\n
ORDER BY <dtml-var order_by_expression>\n ORDER BY <dtml-var order_by_expression>\n
</dtml-if>\n </dtml-if>\n
\n <dtml-if limit_expression>\n
LIMIT <dtml-var limit_expression>\n
</dtml-if>
]]></string> </value> ]]></string> </value>
</item> </item>
......
385 386
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>from_table_list:list\r\n <value> <string>from_table_list:list\r\n
where_expression\r\n where_expression\r\n
order_by_expression</string> </value> order_by_expression\r\n
limit_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -44,7 +45,7 @@ order_by_expression</string> </value> ...@@ -44,7 +45,7 @@ order_by_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>max_cache_</string> </key> <key> <string>max_cache_</string> </key>
<value> <int>100</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>max_rows_</string> </key> <key> <string>max_rows_</string> </key>
...@@ -83,7 +84,9 @@ WHERE\n ...@@ -83,7 +84,9 @@ WHERE\n
<dtml-if order_by_expression>\n <dtml-if order_by_expression>\n
ORDER BY <dtml-var order_by_expression>\n ORDER BY <dtml-var order_by_expression>\n
</dtml-if>\n </dtml-if>\n
<dtml-if limit_expression>\n
LIMIT <dtml-var limit_expression>\n
</dtml-if>
]]></string> </value> ]]></string> </value>
</item> </item>
......
476 477
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>from_table_list:list\r\n <value> <string>from_table_list:list\r\n
where_expression\r\n where_expression\r\n
order_by_expression</string> </value> order_by_expression\r\n
limit_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -44,11 +45,11 @@ order_by_expression</string> </value> ...@@ -44,11 +45,11 @@ order_by_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>max_cache_</string> </key> <key> <string>max_cache_</string> </key>
<value> <int>100</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>max_rows_</string> </key> <key> <string>max_rows_</string> </key>
<value> <int>1000</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>src</string> </key> <key> <string>src</string> </key>
...@@ -84,6 +85,9 @@ WHERE\n ...@@ -84,6 +85,9 @@ WHERE\n
\n \n
<dtml-if order_by_expression>\n <dtml-if order_by_expression>\n
ORDER BY <dtml-var order_by_expression>\n ORDER BY <dtml-var order_by_expression>\n
</dtml-if>\n
<dtml-if limit_expression>\n
LIMIT <dtml-var limit_expression>\n
</dtml-if> </dtml-if>
]]></string> </value> ]]></string> </value>
......
819 820
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>from_table_list:list\r\n <value> <string>from_table_list:list\r\n
where_expression\r\n where_expression\r\n
order_by_expression</string> </value> order_by_expression\r\n
limit_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -46,11 +47,11 @@ order_by_expression</string> </value> ...@@ -46,11 +47,11 @@ order_by_expression</string> </value>
</item> </item>
<item> <item>
<key> <string>max_cache_</string> </key> <key> <string>max_cache_</string> </key>
<value> <int>100</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>max_rows_</string> </key> <key> <string>max_rows_</string> </key>
<value> <int>1000</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>src</string> </key> <key> <string>src</string> </key>
...@@ -86,6 +87,9 @@ WHERE\n ...@@ -86,6 +87,9 @@ WHERE\n
\n \n
<dtml-if order_by_expression>\n <dtml-if order_by_expression>\n
ORDER BY <dtml-var order_by_expression>\n ORDER BY <dtml-var order_by_expression>\n
</dtml-if>\n
<dtml-if limit_expression>\n
LIMIT <dtml-var limit_expression>\n
</dtml-if> </dtml-if>
]]></string> </value> ]]></string> </value>
......
1160 1161
\ 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