Commit 12dd9d6c authored by Aurel's avatar Aurel

these calls must be inside transaction

parent 8573808a
......@@ -22,6 +22,8 @@
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
REPLACE INTO\n
syncml (`path`, `gid`)\n
VALUES\n
......@@ -31,7 +33,8 @@ VALUES\n
<dtml-sqlvar expr="gid[loop_item]" type="string">\n
)<dtml-unless sequence-end>,</dtml-unless>\n
</dtml-in>\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
......@@ -58,6 +58,8 @@ limit\r\n
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
SELECT \n
gid\n
FROM syncml\n
......@@ -80,7 +82,9 @@ WHERE\n
ORDER BY gid\n
<dtml-if limit>\n
LIMIT <dtml-var limit>\n
</dtml-if>
</dtml-if>\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
......@@ -23,13 +23,17 @@ path</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
SELECT path \n
FROM syncml\n
WHERE\n
gid in (<dtml-in gid_list><dtml-sqlvar sequence-item type="string">\n
<dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>)\n
AND\n
path like <dtml-sqlvar path type="string">
path like <dtml-sqlvar path type="string">\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
......@@ -22,9 +22,13 @@
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
DELETE FROM syncml\n
WHERE\n
path like <dtml-sqlvar path type="string">
path like <dtml-sqlvar path type="string">\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
95
\ No newline at end of file
96
\ 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