db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r365992 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/mysql/MySqlPlatform.java
Date Wed, 04 Jan 2006 21:09:22 GMT
Author: tomdz
Date: Wed Jan  4 13:09:18 2006
New Revision: 365992

URL: http://svn.apache.org/viewcvs?rev=365992&view=rev
Log:
Changed the default sizes to the amount that the JDBC spec defines as the minimum sizes that
a database shall support

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/mysql/MySqlPlatform.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/mysql/MySqlPlatform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/mysql/MySqlPlatform.java?rev=365992&r1=365991&r2=365992&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/mysql/MySqlPlatform.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/mysql/MySqlPlatform.java Wed Jan
 4 13:09:18 2006
@@ -80,10 +80,10 @@
         info.addNativeTypeMapping("BOOLEAN",  "TINYINT(1)");
         info.addNativeTypeMapping("DATALINK", "MEDIUMBLOB");
 
+        info.addDefaultSize(Types.CHAR,      254);
+        info.addDefaultSize(Types.VARCHAR,   254);
         info.addDefaultSize(Types.BINARY,    254);
         info.addDefaultSize(Types.VARBINARY, 254);
-        // VARCHAR needs a size specified. It's best to sepecify one in your model
-        info.addDefaultSize(Types.VARCHAR, 50);
         
         setSqlBuilder(new MySqlBuilder(info));
         setModelReader(new MySqlModelReader(info));



Mime
View raw message