Commit 12dd9d6c authored by Aurel's avatar Aurel

these calls must be inside transaction

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