Commit e228bd83 authored by Aurel's avatar Aurel

remove BEGIN/COMMIT and fix connection string

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