db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r332031 - in /db/ddlutils/trunk/src: java/org/apache/ddlutils/platform/CloudscapePlatform.java test/jdbc.properties.derby
Date Wed, 09 Nov 2005 13:07:19 GMT
Author: tomdz
Date: Wed Nov  9 05:07:08 2005
New Revision: 332031

URL: http://svn.apache.org/viewcvs?rev=332031&view=rev
Log:
Changed mapping of BIT/BOOOLEAN for Cloudscape & Derby from CHAR FOR BIT DATA to SMALLINT
Changed default username in the Derby test properties

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/CloudscapePlatform.java
    db/ddlutils/trunk/src/test/jdbc.properties.derby

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/CloudscapePlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/CloudscapePlatform.java?rev=332031&r1=332030&r2=332031&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/CloudscapePlatform.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/CloudscapePlatform.java Wed Nov
 9 05:07:08 2005
@@ -50,7 +50,7 @@
         // BINARY and VARBINARY will also be handled by CloudscapeBuilder.getSqlType
         info.addNativeTypeMapping(Types.ARRAY,         "BLOB");
         info.addNativeTypeMapping(Types.BINARY,        "CHAR");
-        info.addNativeTypeMapping(Types.BIT,           "CHAR FOR BIT DATA");
+        info.addNativeTypeMapping(Types.BIT,           "SMALLINT");
         info.addNativeTypeMapping(Types.DISTINCT,      "BLOB");
         info.addNativeTypeMapping(Types.DOUBLE,        "DOUBLE PRECISION");
         info.addNativeTypeMapping(Types.FLOAT,         "DOUBLE PRECISION");
@@ -63,7 +63,7 @@
         info.addNativeTypeMapping(Types.STRUCT,        "BLOB");
         info.addNativeTypeMapping(Types.TINYINT,       "SMALLINT");
         info.addNativeTypeMapping(Types.VARBINARY,     "VARCHAR");
-        info.addNativeTypeMapping("BOOLEAN",  "CHAR FOR BIT DATA");
+        info.addNativeTypeMapping("BOOLEAN",  "SMALLINT");
         info.addNativeTypeMapping("DATALINK", "LONG VARCHAR FOR BIT DATA");
 
         setSqlBuilder(new CloudscapeBuilder(info));

Modified: db/ddlutils/trunk/src/test/jdbc.properties.derby
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/jdbc.properties.derby?rev=332031&r1=332030&r2=332031&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/jdbc.properties.derby (original)
+++ db/ddlutils/trunk/src/test/jdbc.properties.derby Wed Nov  9 05:07:08 2005
@@ -12,5 +12,7 @@
 #datasource.driverClassName=org.apache.derby.jdbc.ClientDriver
 
 datasource.url=jdbc:derby:../database/ddlutils
-#datasource.username=
-#datasource.password=
\ No newline at end of file
+# The default username for Derby is app; for every other user the must be a corresponding
schema defined
+# in the database; see http://db.apache.org/derby/faq.html#schema_exist for details
+datasource.username=app
+datasource.password=
\ No newline at end of file



Mime
View raw message