db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r509420 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
Date Tue, 20 Feb 2007 03:38:43 GMT
Author: djd
Date: Mon Feb 19 19:38:43 2007
New Revision: 509420

URL: http://svn.apache.org/viewvc?view=rev&rev=509420
Log:
Add workaround in DatabaseMetaDataTest for DERBY-584 to stop DatabaseMetaDataTest failing.

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=509420&r1=509419&r2=509420
==============================================================================
--- 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
Mon Feb 19 19:38:43 2007
@@ -1253,6 +1253,18 @@
             assertEquals("DATA_TYPE",
                     Types.BINARY, rsmdt.getColumnType(col));                            
  
         }
+        else if (dmdColumnType == Types.NUMERIC && usingDerbyNetClient())
+        {
+            // DERBY-584 inconsistency in numeric & decimal
+            assertEquals("DATA_TYPE",
+                    Types.DECIMAL, rsmdt.getColumnType(col));
+            
+            assertEquals("TYPE_NAME",
+                    "DECIMAL", rsmdt.getColumnTypeName(col));
+                       
+            assertEquals("TYPE_NAME",
+                    "NUMERIC", rs.getString("TYPE_NAME"));
+        }
         else
         {
             assertEquals("DATA_TYPE",



Mime
View raw message