db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r506283 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/io/ConverterConfiguration.java
Date Mon, 12 Feb 2007 05:12:09 GMT
Author: tomdz
Date: Sun Feb 11 21:12:09 2007
New Revision: 506283

URL: http://svn.apache.org/viewvc?view=rev&rev=506283
Log:
Added missing 'boolean' converter configuration

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/io/ConverterConfiguration.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/io/ConverterConfiguration.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/io/ConverterConfiguration.java?view=diff&rev=506283&r1=506282&r2=506283
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/io/ConverterConfiguration.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/io/ConverterConfiguration.java Sun Feb
11 21:12:09 2007
@@ -30,6 +30,7 @@
 import org.apache.ddlutils.io.converters.TimestampConverter;
 import org.apache.ddlutils.model.Column;
 import org.apache.ddlutils.model.Table;
+import org.apache.ddlutils.util.Jdbc3Utils;
 
 /**
  * Contains the configuration for converters, which convert between the Java data types
@@ -69,6 +70,10 @@
         registerConverter(Types.VARBINARY,     binaryConverter);
         registerConverter(Types.LONGVARBINARY, binaryConverter);
         registerConverter(Types.BLOB,          binaryConverter);
+        if (Jdbc3Utils.supportsJava14JdbcTypes())
+        {
+            registerConverter(Jdbc3Utils.determineBooleanTypeCode(), numberConverter);
+        }
     }
 
     /**



Mime
View raw message