db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r366031 - /db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatatypes.java
Date Wed, 04 Jan 2006 23:37:45 GMT
Author: tomdz
Date: Wed Jan  4 15:37:42 2006
New Revision: 366031

URL: http://svn.apache.org/viewcvs?rev=366031&view=rev
Log:
Changed test for CHAR columns with a default value to avoid problems that occur with databases
that do not return the padding spaces (e.g. HsqlDb and MySql)

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

Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatatypes.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatatypes.java?rev=366031&r1=366030&r2=366031&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatatypes.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestDatatypes.java Wed Jan  4 15:37:42
2006
@@ -285,7 +285,7 @@
         "<database name='roundtriptest'>\n"+
         "  <table name='roundtrip'>\n"+
         "    <column name='pk' type='INTEGER' primaryKey='true' required='true'/>\n"+
-        "    <column name='value' type='CHAR' size='15' required='true' default='some
value     '/>\n"+
+        "    <column name='value' type='CHAR' size='15' required='true' default='543210987654321'/>\n"+
         "  </table>\n"+
         "</database>";
     /** Test model with a simple VARCHAR column. */
@@ -702,7 +702,7 @@
      */
     public void testCharWithDefault()
     {
-        performDataTypeTest(TEST_CHAR_MODEL_WITH_DEFAULT, null, "12345", "some value    
", "12345          ");
+        performDataTypeTest(TEST_CHAR_MODEL_WITH_DEFAULT, null, "123456789012345", "543210987654321",
"123456789012345");
     }
 
     /**



Mime
View raw message