db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r418953 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/firebird/FirebirdModelReader.java
Date Tue, 04 Jul 2006 09:05:01 GMT
Author: tomdz
Date: Tue Jul  4 02:05:01 2006
New Revision: 418953

URL: http://svn.apache.org/viewvc?rev=418953&view=rev
Log:
Fixed Firebird platform

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/firebird/FirebirdModelReader.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/firebird/FirebirdModelReader.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/firebird/FirebirdModelReader.java?rev=418953&r1=418952&r2=418953&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/firebird/FirebirdModelReader.java
(original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/firebird/FirebirdModelReader.java
Tue Jul  4 02:05:01 2006
@@ -33,6 +33,7 @@
 import org.apache.ddlutils.model.ForeignKey;
 import org.apache.ddlutils.model.Index;
 import org.apache.ddlutils.model.Table;
+import org.apache.ddlutils.model.TypeMap;
 import org.apache.ddlutils.platform.DatabaseMetaDataWrapper;
 import org.apache.ddlutils.platform.JdbcModelReader;
 
@@ -135,6 +136,10 @@
 		{
 			column.setTypeCode(Types.REAL);
 		}
+        else if (TypeMap.isTextType(column.getTypeCode()))
+        {
+            column.setDefaultValue(unescape(column.getDefaultValue(), "'", "''"));
+        }
 		return column;
 	}
 



Mime
View raw message