You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by to...@apache.org on 2007/01/08 05:15:25 UTC

svn commit: r493938 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/postgresql/PostgreSqlModelReader.java

Author: tomdz
Date: Sun Jan  7 20:15:24 2007
New Revision: 493938

URL: http://svn.apache.org/viewvc?view=rev&rev=493938
Log:
Added comment explainig the change of the quotation character for postgresql

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/postgresql/PostgreSqlModelReader.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/postgresql/PostgreSqlModelReader.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/postgresql/PostgreSqlModelReader.java?view=diff&rev=493938&r1=493937&r2=493938
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/postgresql/PostgreSqlModelReader.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/postgresql/PostgreSqlModelReader.java Sun Jan  7 20:15:24 2007
@@ -153,6 +153,8 @@
                 }
                 if (TypeMap.isTextType(column.getTypeCode()))
                 {
+                    // We assume escaping via double quote (see also the backslash_quote setting:
+                    // http://www.postgresql.org/docs/7.4/interactive/runtime-config.html#RUNTIME-CONFIG-COMPATIBLE)
                     defaultValue = unescape(defaultValue, "'", "''");
                 }
             }