db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r631039 - in /db/derby/code/branches/10.1/java: engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java testing/org/apache/derbyTesting/functionTests/master/savepointJdbc30.out
Date Mon, 25 Feb 2008 23:40:49 GMT
Author: kmarsden
Date: Mon Feb 25 15:40:41 2008
New Revision: 631039

URL: http://svn.apache.org/viewvc?rev=631039&view=rev
Log:
DERBY-3093 Intermittent transaction failure caused by internal duplicate
savepoint name for triggers

port from trunk revision 588202

Contributed by James F. Adams


Modified:
    db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
    db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/master/savepointJdbc30.out

Modified: db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java?rev=631039&r1=631038&r2=631039&view=diff
==============================================================================
--- db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
(original)
+++ db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
Mon Feb 25 15:40:41 2008
@@ -89,14 +89,13 @@
 		this.lcc = lcc;
 		this.tc = tc;
 
-		internalSavePointName = "ISSP" + hashCode();
-
 		if (SanityManager.DEBUG)
 		{
 			SanityManager.ASSERT((lcc != null),
 					"Failed to get language connection context");
 		}
 
+        internalSavePointName = lcc.getUniqueSavepointName();
 	}
 
 	// StatementContext Interface

Modified: db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/master/savepointJdbc30.out
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/master/savepointJdbc30.out?rev=631039&r1=631038&r2=631039&view=diff
==============================================================================
--- db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/master/savepointJdbc30.out
(original)
+++ db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/master/savepointJdbc30.out
Mon Feb 25 15:40:41 2008
@@ -78,8 +78,8 @@
 Test41b - Rollback to a savepoint, then try to rollback savepoint created after that savepoint
 Expected Exception is SAVEPOINT, s2 does not  exist or is not active in the current transaction.
 Test42 - Rollback/commit the transaction, then try to use savepoint from that transaction
-Expected Exception is SAVEPOINT, SAVEPT5 does not  exist or is not active in the current
transaction.
 Expected Exception is SAVEPOINT, SAVEPT6 does not  exist or is not active in the current
transaction.
+Expected Exception is SAVEPOINT, SAVEPT7 does not  exist or is not active in the current
transaction.
 Test43 - Release and reuse a savepoint name
 Expected Exception is A SAVEPOINT with the passed name already exists in the current transaction.
 Test 45 reuse savepoint name after rollback - should not work
@@ -90,11 +90,11 @@
 Expected Exception is ResultSet not open. Operation 'next' not permitted. Verify that autocommit
is OFF.
 Expected Exception is ResultSet not open. Operation 'next' not permitted. Verify that autocommit
is OFF.
 Test 47 multiple tests for getSavepointId()
-8
 9
 10
 11
 12
+13
 Test 48 No nested SQL savepoints allowed.
 Following SQL savepoint will fail because we are trying to nest it inside JDBC savepoint
 Expected Exception is The maximum number of savepoints has been reached. 
@@ -180,8 +180,8 @@
 Test41b - Rollback to a savepoint, then try to rollback savepoint created after that savepoint
 Expected Exception is SAVEPOINT, s2 does not  exist or is not active in the current transaction.
 Test42 - Rollback/commit the transaction, then try to use savepoint from that transaction
-Expected Exception is SAVEPOINT, SAVEPT5 does not  exist or is not active in the current
transaction.
 Expected Exception is SAVEPOINT, SAVEPT6 does not  exist or is not active in the current
transaction.
+Expected Exception is SAVEPOINT, SAVEPT7 does not  exist or is not active in the current
transaction.
 Test43 - Release and reuse a savepoint name
 Expected Exception is A SAVEPOINT with the passed name already exists in the current transaction.
 Test 45 reuse savepoint name after rollback - should not work
@@ -192,11 +192,11 @@
 Expected Exception is ResultSet not open. Operation 'next' not permitted. Verify that autocommit
is OFF.
 Expected Exception is ResultSet not open. Operation 'next' not permitted. Verify that autocommit
is OFF.
 Test 47 multiple tests for getSavepointId()
-8
 9
 10
 11
 12
+13
 Test 48 No nested SQL savepoints allowed.
 Following SQL savepoint will fail because we are trying to nest it inside JDBC savepoint
 Expected Exception is The maximum number of savepoints has been reached. 



Mime
View raw message