db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r610500 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java
Date Wed, 09 Jan 2008 18:44:01 GMT
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();



Mime
View raw message