db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r405866 - in /db/ddlutils/trunk/src/test/org/apache/ddlutils: alteration/TestAlterationAlgorithm.java io/TestAlteration.java
Date Fri, 12 May 2006 20:38:22 GMT
Author: tomdz
Date: Fri May 12 13:38:22 2006
New Revision: 405866

URL: http://svn.apache.org/viewcvs?rev=405866&view=rev
Log:
Updated tests to check the SQL fetch/query fix which leads to correct reading of NULL values

Modified:
    db/ddlutils/trunk/src/test/org/apache/ddlutils/alteration/TestAlterationAlgorithm.java
    db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java

Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/alteration/TestAlterationAlgorithm.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/alteration/TestAlterationAlgorithm.java?rev=405866&r1=405865&r2=405866&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/alteration/TestAlterationAlgorithm.java
(original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/alteration/TestAlterationAlgorithm.java
Fri May 12 13:38:22 2006
@@ -628,7 +628,6 @@
             "</database>";
 
         assertEqualsIgnoringWhitespaces(
-            "ALTER TABLE \"TableA\" ADD CONSTRAINT \"TableA_PK\" PRIMARY KEY (\"ColPK1\",\"ColPK2\");\n"+
             "CREATE TABLE \"TableA_\"\n"+
             "(\n"+
             "    \"ColPK1\" INTEGER NOT NULL,\n"+

Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java?rev=405866&r1=405865&r2=405866&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/io/TestAlteration.java Fri May 12 13:38:22
2006
@@ -465,7 +465,7 @@
             "  <table name='roundtrip'>\n"+
             "    <column name='pk' type='INTEGER' primaryKey='true' required='true'/>\n"+
             "    <column name='avalue1' type='VARCHAR' size='32'/>\n"+
-            "    <column name='avalue2' type='INTEGER' required='true' default='0'/>\n"+
+            "    <column name='avalue2' type='INTEGER'/>\n"+
             "    <column name='avalue3' type='DOUBLE' default='1.0'/>\n"+
             "    <column name='avalue4' type='CHAR' size='16'/>\n"+
             "  </table>\n"+
@@ -483,7 +483,7 @@
         List beans = getRows("roundtrip");
 
         assertEquals((Object)null, beans.get(0), "avalue1");
-        assertEquals(new Integer(0), beans.get(0), "avalue2");
+        assertEquals((Object)null, beans.get(0), "avalue2");
         assertEquals((Object)null, beans.get(0), "avalue4");
     }
 



Mime
View raw message