Skip to content

Commit

Permalink
too many backslashes for mysql, and not enough for oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Oct 12, 2007
1 parent f015dc0 commit 5f9ab8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symmetric/src/main/resources/symmetric-dialects.xml
Expand Up @@ -9,7 +9,7 @@
<bean id="mysqlStringTemplate" class="java.lang.String">
<constructor-arg>
<value>
<![CDATA[if($(tableAlias).$(columnName) is null,'',concat('"',replace(replace($(tableAlias).$(columnName),'\\\\','\\\\\\\\'),'"','\\\\"'),'"')),',',]]>
<![CDATA[if($(tableAlias).$(columnName) is null,'',concat('"',replace(replace($(tableAlias).$(columnName),'\\','\\\\'),'"','\\"'),'"')),',',]]>
</value>
</constructor-arg>
</bean>
Expand Down Expand Up @@ -132,7 +132,7 @@
<bean class="org.jumpmind.symmetric.db.SqlTemplate">
<property name="stringColumnTemplate" >
<value>
<![CDATA[ case when $(tableAlias).$(columnName) is null then '' else concat(concat('"',replace(replace($(tableAlias).$(columnName),'\\','\\'),'"','\\"')),'"') end ||','||]]>
<![CDATA[ case when $(tableAlias).$(columnName) is null then '' else concat(concat('"',replace(replace($(tableAlias).$(columnName),'\\','\\\\'),'"','\\"')),'"') end ||','||]]>
</value>
</property>
<property name="clobColumnTemplate">
Expand Down

0 comments on commit 5f9ab8f

Please sign in to comment.