Commit e228bd83 authored by Aurel's avatar Aurel

remove BEGIN/COMMIT and fix connection string

parent cd193001
......@@ -22,8 +22,6 @@
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
REPLACE INTO\n
syncml (`path`, `gid`, `data`)\n
VALUES\n
......@@ -34,8 +32,7 @@ VALUES\n
<dtml-sqlvar expr="data[loop_item]" type="string">\n
)<dtml-unless sequence-end>,</dtml-unless>\n
</dtml-in>\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
......@@ -22,13 +22,10 @@
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
DELETE FROM syncml\n
WHERE\n
path = <dtml-sqlvar path type="string">\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
......@@ -6,6 +6,12 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_col</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string></string> </value>
......
......@@ -13,7 +13,7 @@ source_path</string> </value>
</item>
<item>
<key> <string>connection_id</string> </key>
<value> <string>cmf_activity_sql_connection</string> </value>
<value> <string>erp5_sql_connection</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -56,8 +56,6 @@ limit</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
SELECT \n
gid\n
FROM syncml\n
......@@ -76,8 +74,7 @@ ORDER BY gid\n
<dtml-if limit>\n
LIMIT <dtml-var limit>\n
</dtml-if>\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
......@@ -54,8 +54,6 @@ path</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
BEGIN\n
<dtml-var sql_delimiter>\n
SELECT path, gid, data \n
FROM syncml\n
WHERE\n
......@@ -66,8 +64,7 @@ WHERE\n
<dtml-if max_gid>\n
AND gid <= <dtml-sqlvar max_gid type="string">\n
</dtml-if>\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>connection_id</string> </key>
<value> <string>cmf_activity_sql_connection</string> </value>
<value> <string>erp5_sql_connection</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......@@ -22,13 +22,10 @@
<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">\n
<dtml-var sql_delimiter>\n
COMMIT
]]></string> </value>
</item>
......
112
\ No newline at end of file
113
\ 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