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 dj...@apache.org on 2008/01/09 19:44:01 UTC

svn commit: r610500 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java

Author: djd
Date: Wed Jan  9 10:43:42 2008
New Revision: 610500

URL: http://svn.apache.org/viewvc?rev=610500&view=rev
Log:
DERBY-3305 Add an additional assert in ResultSetTest to ensure the ResultSet.getStatement() matches the Statement that executed the CALL for dynamic result sets.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java?rev=610500&r1=610499&r2=610500&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java Wed Jan  9 10:43:42 2008
@@ -1522,6 +1522,7 @@
                 cs.setInt(1, holdabilities[procHoldability]);
                 cs.execute();
                 rs = cs.getResultSet();
+                assertSame(cs, rs.getStatement());
                 int holdability = rs.getHoldability();
                 assertEquals("holdability of ResultSet from stored proc: " + holdabilityString(holdability), holdabilities[procHoldability], holdability);
                 commit();