Commit abf6d8d4 authored by Romain Courteaud's avatar Romain Courteaud

erp5_dms: drop the hardcoded LIMIT 1000

Do not limit by default
parent 4dc5e290
......@@ -47,7 +47,11 @@ AS sub inner join catalog on catalog.path = sub.path
AS main
WHERE
<dtml-sqltest "getUid()" column=uid op=ne type=int>
LIMIT 1000
<dtml-if "query['limit_expression']">
LIMIT <dtml-var "query['limit_expression']">
</dtml-if>
<dtml-if "'derived_merge' in optimizer_switch_key_list">
<dtml-var sql_delimiter>
......
......@@ -47,7 +47,11 @@ AS sub inner join catalog on catalog.path = sub.path
AS main
WHERE
<dtml-sqltest "getUid()" column=uid op=ne type=int>
LIMIT 1000
<dtml-if "query['limit_expression']">
LIMIT <dtml-var "query['limit_expression']">
</dtml-if>
<dtml-if "'derived_merge' in optimizer_switch_key_list">
<dtml-var sql_delimiter>
......
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