Commit be644466 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix problem when generating a list of more than one id for a non-existing id_group.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13741 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90e1a853
......@@ -112,7 +112,7 @@ BEGIN\n
INSERT INTO\n
portal_ids (`id_group`, `last_id`)\n
VALUES\n
(<dtml-sqlvar id_group type="string">, LAST_INSERT_ID(<dtml-sqlvar default type="int">))\n
(<dtml-sqlvar id_group type="string">, LAST_INSERT_ID(<dtml-sqlvar expr="default + id_count" type="int">))\n
ON DUPLICATE KEY UPDATE\n
`last_id` = LAST_INSERT_ID(`last_id` + <dtml-sqlvar id_count type="int">)\n
<dtml-var sql_delimiter>\n
......@@ -162,7 +162,7 @@ BEGIN\n
INSERT INTO\n
portal_ids (`id_group`, `last_id`)\n
VALUES\n
(<dtml-sqlvar id_group type="string">, LAST_INSERT_ID(<dtml-sqlvar default type="int">))\n
(<dtml-sqlvar id_group type="string">, LAST_INSERT_ID(<dtml-sqlvar expr="default + id_count" type="int">))\n
ON DUPLICATE KEY UPDATE\n
`last_id` = LAST_INSERT_ID(`last_id` + <dtml-sqlvar id_count type="int">)\n
<dtml-var sql_delimiter>\n
......
36
\ No newline at end of file
38
\ 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