db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r901277 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
Date Wed, 20 Jan 2010 16:59:52 GMT
Author: rhillegas
Date: Wed Jan 20 16:59:52 2010
New Revision: 901277

URL: http://svn.apache.org/viewvc?rev=901277&view=rev
Log:
DERBY-4491: Disable test of parameter metadata on small platforms since PreparedStatement.getParameterMetaData()
is not available on JSR-169 vms.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java?rev=901277&r1=901276&r2=901277&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
Wed Jan 20 16:59:52 2010
@@ -693,10 +693,16 @@
      */
     public void test_10_parameterMetaData() throws Exception
     {
+        //
+        // Parameter meta data is not available on JSR-169 platforms,
+        // so skip this test in those environments.
+        //
+        if ( JDBC.vmSupportsJSR169() ) { return; }
+        
         Connection conn = getConnection();
 
         goodStatement( conn, "create type price_10_a external name 'org.apache.derbyTesting.functionTests.tests.lang.Price'
language java\n" );
-        goodStatement( conn, "create table t_10_a( a price_09_a )\n" );
+        goodStatement( conn, "create table t_10_a( a price_10_a )\n" );
 
         // ANSI UDT
         checkPMD
@@ -705,7 +711,7 @@
              "insert into t_10_a( a ) values ( ? )\n",
              "org.apache.derbyTesting.functionTests.tests.lang.Price",
              java.sql.Types.JAVA_OBJECT,
-             "\"APP\".\"PRICE_09_A\"",
+             "\"APP\".\"PRICE_10_A\"",
              0,
              0
              );



Mime
View raw message