Skip to content

Commit d47071e

Browse files
committed
Error handler rule was not implemented in a SQL Statement context in Java.
Issue: 72730
1 parent 055b062 commit d47071e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/com/genexus/ExecuteDirectSQL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public static void execute(ModelContext context, int handle, String dataSource,
3939
else
4040
{
4141
try {
42-
AbstractGXConnection conn = new DefaultConnectionProvider().getConnection(context, handle, "DEFAULT", true, true);
43-
SpecificImplementation.Application.handleSQLError(errorHandler, ex, context, handle, conn, "DEFAULT", new DirectStatement(statement));
42+
AbstractGXConnection conn = new DefaultConnectionProvider().getConnection(context, handle, dataSource, true, true);
43+
SpecificImplementation.Application.handleSQLError(errorHandler, ex, context, handle, conn, dataSource, new DirectStatement(statement));
4444
}
4545
catch (SQLException e) {
4646
throw new GXRuntimeException(e);

0 commit comments

Comments
 (0)