Remove tweaking of auto commit in AbstractRoutine
This commit is contained in:
parent
45f1a65729
commit
3da2486e10
@ -271,21 +271,10 @@ public abstract class AbstractRoutine<T> extends AbstractQueryPart implements Ro
|
||||
registerOutParameters(configuration, (CallableStatement) ctx.statement());
|
||||
listener.bindEnd(ctx);
|
||||
|
||||
// Postgres requires two separate queries running in the same
|
||||
// transaction to be executed when fetching refcursor types
|
||||
boolean autoCommit = connection.getAutoCommit();
|
||||
if (autoCommit && configuration.dialect() == SQLDialect.POSTGRES) {
|
||||
connection.setAutoCommit(false);
|
||||
}
|
||||
|
||||
listener.executeStart(ctx);
|
||||
ctx.statement().execute();
|
||||
listener.executeEnd(ctx);
|
||||
|
||||
if (autoCommit && configuration.dialect() == SQLDialect.POSTGRES) {
|
||||
connection.setAutoCommit(autoCommit);
|
||||
}
|
||||
|
||||
fetchOutParameters(ctx);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user