Commit d3f2dc71 authored by Vincent Pelletier's avatar Vincent Pelletier

Creating a table commits transaction implicitely. But when there are rows to...

Creating a table commits transaction implicitely. But when there are rows to insert, that transaction never gets commited (since we are using a non-transactionnal connector - on purpose). So we must manually commit here.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24279 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2eca9d0a
...@@ -99,7 +99,8 @@ CREATE TABLE `portal_ids` (\n ...@@ -99,7 +99,8 @@ CREATE TABLE `portal_ids` (\n
<dtml-in expr="getPortalObject().portal_ids.getDictLengthIdsItems()">\n <dtml-in expr="getPortalObject().portal_ids.getDictLengthIdsItems()">\n
INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-key type="string">, <dtml-sqlvar sequence-item type="int">)\n INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-key type="string">, <dtml-sqlvar sequence-item type="int">)\n
<dtml-var sql_delimiter>\n <dtml-var sql_delimiter>\n
</dtml-in> </dtml-in>\n
COMMIT
]]></string> </value> ]]></string> </value>
</item> </item>
...@@ -148,7 +149,8 @@ CREATE TABLE `portal_ids` (\n ...@@ -148,7 +149,8 @@ CREATE TABLE `portal_ids` (\n
<dtml-in expr="getPortalObject().portal_ids.getDictLengthIdsItems()">\n <dtml-in expr="getPortalObject().portal_ids.getDictLengthIdsItems()">\n
INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-key type="string">, <dtml-sqlvar sequence-item type="int">)\n INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-key type="string">, <dtml-sqlvar sequence-item type="int">)\n
<dtml-var sql_delimiter>\n <dtml-var sql_delimiter>\n
</dtml-in> </dtml-in>\n
COMMIT
]]></string> </value> ]]></string> </value>
</item> </item>
......
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