Author: dag
Date: Wed May 13 00:18:53 2009
New Revision: 774148
URL: http://svn.apache.org/viewvc?rev=774148&view=rev
Log:
DERBY-4198 When using the FOR UPDATE OF clause with SUR (Scroll-insensive updatable result
sets), the updateRow() method crashes
Patch derby-4198-throwable, which makes sure all exceptions seen in
insertRow, deleteRow and updateRow are wrapped properly to avoid
crash. Partial fix for this issue.
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java?rev=774148&r1=774147&r2=774148&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java Wed May
13 00:18:53 2009
@@ -3648,7 +3648,7 @@
act.close();
lcc.popStatementContext(statementContext, null);
- } catch (StandardException t) {
+ } catch (Throwable t) {
throw closeOnTransactionError(t);
} finally {
if (statementContext != null)
@@ -3733,7 +3733,7 @@
movePosition(RELATIVE, 0, "relative");
}
lcc.popStatementContext(statementContext, null);
- } catch (StandardException t) {
+ } catch (Throwable t) {
throw closeOnTransactionError(t);
} finally {
if (statementContext != null)
@@ -3795,7 +3795,7 @@
//the next row.
currentRow = null;
lcc.popStatementContext(statementContext, null);
- } catch (StandardException t) {
+ } catch (Throwable t) {
throw closeOnTransactionError(t);
} finally {
if (statementContext != null)
|