db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r674849 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
Date Tue, 08 Jul 2008 14:55:16 GMT
Author: kristwaa
Date: Tue Jul  8 07:55:16 2008
New Revision: 674849

URL: http://svn.apache.org/viewvc?rev=674849&view=rev
Log:
DERBY-1944: jdbcapi/ParameterMappingTest.java test does not execute test for setObject(Blob/Clob)
in DerbyNetClient.
Made the test execute tests for setObject(Blob) and setObject(Clob).
Patch file: derby-1944-1a.diff

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java?rev=674849&r1=674848&r2=674849&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
Tue Jul  8 07:55:16 2008
@@ -2847,24 +2847,24 @@
                 .valueOf("2004-02-14 00:00:00.0"), "java.sql.Timestamp", 10);
         s.getConnection().commit();
 
-        if (!usingDerbyNetClient()) {
-            {
-                ResultSet rsc = s
-                        .executeQuery("SELECT B FROM PM.LOB_GET WHERE ID = 1");
-                rsc.next();
-                Blob tester = rsc.getBlob(1);
-                rsc.close();
-                setXXX_setObject(s, psi, psq, type, tester, "java.sql.Blob", 11);
-            }
+        // Test setObject with Blob
+        {
+            ResultSet rsc = s
+                    .executeQuery("SELECT B FROM PM.LOB_GET WHERE ID = 1");
+            rsc.next();
+            Blob tester = rsc.getBlob(1);
+            rsc.close();
+            setXXX_setObject(s, psi, psq, type, tester, "java.sql.Blob", 11);
+        }
 
-            {
-                ResultSet rsc = s
-                        .executeQuery("SELECT C FROM PM.LOB_GET WHERE ID = 1");
-                rsc.next();
-                Clob tester = rsc.getClob(1);
-                rsc.close();
-                setXXX_setObject(s, psi, psq, type, tester, "java.sql.Clob", 12);
-            }
+        // Test setObject with Clob
+        {
+            ResultSet rsc = s
+                    .executeQuery("SELECT C FROM PM.LOB_GET WHERE ID = 1");
+            rsc.next();
+            Clob tester = rsc.getClob(1);
+            rsc.close();
+            setXXX_setObject(s, psi, psq, type, tester, "java.sql.Clob", 12);
         }
     }
 



Mime
View raw message