You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2014/10/15 00:37:23 UTC

svn commit: r1631920 - /db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java

Author: myrnavl
Date: Tue Oct 14 22:37:23 2014
New Revision: 1631920

URL: http://svn.apache.org/r1631920
Log:
DERBY-6563; NOT elimination for CASE expressions is broken
   skipping a check not supported by JSR169

Modified:
    db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java

Modified: db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java?rev=1631920&r1=1631919&r2=1631920&view=diff
==============================================================================
--- db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java (original)
+++ db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java Tue Oct 14 22:37:23 2014
@@ -514,7 +514,9 @@ public class CaseExpressionTest extends 
         // Parameters in the WHEN clause can be untyped. They will
         // implicitly get the BOOLEAN type.
         ps = prepareStatement("values case when ? then 1 else 0 end");
-        assertEquals(Types.BOOLEAN,
+        // PreparedStatement.getParameterMetaData() does not exist in JSR169
+        if (JDBC.vmSupportsJDBC3())
+            assertEquals(Types.BOOLEAN,
                      ps.getParameterMetaData().getParameterType(1));
 
         ps.setBoolean(1, true);