db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1086920 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/GenericStatement.java
Date Wed, 30 Mar 2011 12:13:56 GMT
Author: kahatlen
Date: Wed Mar 30 12:13:56 2011
New Revision: 1086920

URL: http://svn.apache.org/viewvc?rev=1086920&view=rev
Log:
DERBY-5161: Cannot rollback after syntax error in internal statement

Make sure the statement context is cleaned up on syntax errors.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/GenericStatement.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/GenericStatement.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/GenericStatement.java?rev=1086920&r1=1086919&r2=1086920&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/GenericStatement.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/GenericStatement.java Wed Mar
30 12:13:56 2011
@@ -552,6 +552,11 @@ public class GenericStatement
 		{
 			if (foundInCache)
 				((GenericLanguageConnectionContext)lcc).removeStatement(this);
+
+            if (statementContext != null) {
+                statementContext.cleanupOnError(se);
+            }
+
 			throw se;
 		}
 		finally



Mime
View raw message