Skip to content

Commit 6a8536b

Browse files
authored
Error handler not executed again after command return (Issue 80028) (#185)
* Error handler not executed again after command return * @fedeazzato imorovement
1 parent bd9b00c commit 6a8536b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

java/src/main/java/com/genexus/db/DefaultExceptionErrorHandler.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ public static void handleSQLError(IErrorHandler errorHandler, SQLException e, Mo
3737
context.globals.Gx_dbsqlstate = e.getSQLState();
3838

3939
context.inErrorHandler = true;
40-
errorHandler.handleError();
41-
context.inErrorHandler = false;
40+
41+
try {
42+
errorHandler.handleError();
43+
}
44+
finally {
45+
context.inErrorHandler = false;
46+
}
4247
}
4348

4449
if (context.globals.Gx_eop == ERROPT_DEFAULT)

0 commit comments

Comments
 (0)