db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r711326 - /db/ddlutils/trunk/src/main/java/org/apache/ddlutils/platform/postgresql/PostgreSqlBuilder.java
Date Tue, 04 Nov 2008 17:42:23 GMT
Author: tomdz
Date: Tue Nov  4 09:42:23 2008
New Revision: 711326

URL: http://svn.apache.org/viewvc?rev=711326&view=rev
Log:
Minor tweak to the DDLUTILS-199 fix as suggested by Rijk van Haaften

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

Modified: db/ddlutils/trunk/src/main/java/org/apache/ddlutils/platform/postgresql/PostgreSqlBuilder.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/main/java/org/apache/ddlutils/platform/postgresql/PostgreSqlBuilder.java?rev=711326&r1=711325&r2=711326&view=diff
==============================================================================
--- db/ddlutils/trunk/src/main/java/org/apache/ddlutils/platform/postgresql/PostgreSqlBuilder.java
(original)
+++ db/ddlutils/trunk/src/main/java/org/apache/ddlutils/platform/postgresql/PostgreSqlBuilder.java
Tue Nov  4 09:42:23 2008
@@ -133,13 +133,7 @@
     protected void writeColumnAutoIncrementStmt(Table table, Column column) throws IOException
     {
         print("UNIQUE DEFAULT nextval('");
-        if (getPlatform().isDelimitedIdentifierModeOn()) {
-            print("\"");
-        }
-        print(getConstraintName(null, table, column.getName(), "seq"));
-        if (getPlatform().isDelimitedIdentifierModeOn()) {
-            print("\"");
-        }
+        printIdentifier(getConstraintName(null, table, column.getName(), "seq"));
         print("')");
     }
 
@@ -166,13 +160,7 @@
                     result.append(", ");
                 }
                 result.append("currval('");
-                if (getPlatform().isDelimitedIdentifierModeOn()) {
-                    result.append("\"");
-                }
-                result.append(getConstraintName(null, table, columns[idx].getName(), "seq"));
-                if (getPlatform().isDelimitedIdentifierModeOn()) {
-                    result.append("\"");
-                }
+                result.append(getDelimitedIdentifier(getConstraintName(null, table, columns[idx].getName(),
"seq")));
                 result.append("') AS ");
                 result.append(getDelimitedIdentifier(columns[idx].getName()));
             }



Mime
View raw message