Commit 91c04339 authored by Kevin Deldycke's avatar Kevin Deldycke

Fix duplicate rows

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6990 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7372ade0
......@@ -500,30 +500,12 @@ WHERE\n
</dtml-in>\n
)\n
</dtml-if>\n
--\n
-- FIXME: This method sometime return non-unique row, problably because of bad acquisition.\n
--\n
-- Exemple of bad result:\n
-- +--------------------+--------------------------------+------------+\n
-- | specific_reference | path | uid |\n
-- +--------------------+--------------------------------+------------+\n
-- | 5525 | /nexedi/accounting_module/5238 | 1990514240 |\n
-- | 59 | /nexedi/accounting_module/5238 | 1990514240 |\n
-- | 60 | /nexedi/accounting_module/5156 | 1990502389 |\n
-- | 5526 | /nexedi/accounting_module/5156 | 1990502389 |\n
-- | 61 | /nexedi/accounting_module/5226 | 1990513370 |\n
--\n
-- Instead of the previous, we expect to get the following result:\n
-- +--------------------+--------------------------------+------------+\n
-- | specific_reference | path | uid |\n
-- +--------------------+--------------------------------+------------+\n
-- | 5525 | /nexedi/accounting_module/5238 | 1990514240 |\n
-- | 5526 | /nexedi/accounting_module/5156 | 1990502389 |\n
--\n
\n
<dtml-unless count>\n
GROUP BY catalog.uid\n
<dtml-if "query[\'order_by_expression\']">\n
ORDER BY <dtml-var "query[\'order_by_expression\']">\n
</dtml-if>\n
<dtml-unless count>\n
<dtml-if "query[\'limit_expression\']">\n
LIMIT <dtml-var "query[\'limit_expression\']">\n
<dtml-else>\n
......@@ -682,30 +664,12 @@ WHERE\n
</dtml-in>\n
)\n
</dtml-if>\n
--\n
-- FIXME: This method sometime return non-unique row, problably because of bad acquisition.\n
--\n
-- Exemple of bad result:\n
-- +--------------------+--------------------------------+------------+\n
-- | specific_reference | path | uid |\n
-- +--------------------+--------------------------------+------------+\n
-- | 5525 | /nexedi/accounting_module/5238 | 1990514240 |\n
-- | 59 | /nexedi/accounting_module/5238 | 1990514240 |\n
-- | 60 | /nexedi/accounting_module/5156 | 1990502389 |\n
-- | 5526 | /nexedi/accounting_module/5156 | 1990502389 |\n
-- | 61 | /nexedi/accounting_module/5226 | 1990513370 |\n
--\n
-- Instead of the previous, we expect to get the following result:\n
-- +--------------------+--------------------------------+------------+\n
-- | specific_reference | path | uid |\n
-- +--------------------+--------------------------------+------------+\n
-- | 5525 | /nexedi/accounting_module/5238 | 1990514240 |\n
-- | 5526 | /nexedi/accounting_module/5156 | 1990502389 |\n
--\n
\n
<dtml-unless count>\n
GROUP BY catalog.uid\n
<dtml-if "query[\'order_by_expression\']">\n
ORDER BY <dtml-var "query[\'order_by_expression\']">\n
</dtml-if>\n
<dtml-unless count>\n
<dtml-if "query[\'limit_expression\']">\n
LIMIT <dtml-var "query[\'limit_expression\']">\n
<dtml-else>\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