Commit 5f3489f5 authored by Romain Courteaud's avatar Romain Courteaud

erp5_dms: drop the hardcoded LIMIT 1000

Do not limit by default
parent d778c3ce
Pipeline #10873 passed with stage
in 0 seconds
......@@ -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