db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r504241 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
Date Tue, 06 Feb 2007 19:02:29 GMT
Author: djd
Date: Tue Feb  6 11:02:29 2007
New Revision: 504241

URL: http://svn.apache.org/viewvc?view=rev&rev=504241
Log:
DERBY-2258 Modified the assert case for XML data type in DatabaseMetaDataTest.java for precision
check.
Patch contributed by: Saurabh Vyas Saurabh.Vyas@Sun.COM

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java?view=diff&rev=504241&r1=504240&r2=504241
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
Tue Feb  6 11:02:29 2007
@@ -1485,11 +1485,15 @@
             }
             assertEquals("PRECISION " + typeName,
                     precision, rs.getInt("PRECISION"));
-	    /* TO DO : currently this asserts fails
-	     corrects the condition for assert if any change is required
-	     or remove the assert
-	    */
-            //assertFalse(rs.wasNull());
+
+            /*
+              Precision value is null for XML data type
+            */
+            if (typeName.equals("XML" ))
+                assertTrue(rs.wasNull());
+            else
+                assertFalse(rs.wasNull());
+
             
             // LITERAL_PREFIX (column 4)
             // LITERAL_SUFFIX (column 5)



Mime
View raw message