Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ class JdbcCallEvent extends Event {
this.query = query;
}

void close() {
if (!closed) {
closed = true;
end();
commit();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ private JdbcOperationEvent newOperationEvent(String operationName) {
@Override
public void close() throws SQLException {
if (!this.closed && !this.callEvent.closed) {
this.callEvent.end();
this.callEvent.commit();
this.callEvent.closed = true;
this.callEvent.close();
this.closed = true;
}
this.delegate.close();
Expand Down Expand Up @@ -228,9 +226,7 @@ public void setBinaryStream(int parameterIndex, InputStream x, int length) throw
@Override
public void clearParameters() throws SQLException {
if (!this.closed && !this.callEvent.closed) {
this.callEvent.end();
this.callEvent.commit();
this.callEvent.closed = true;
this.callEvent.close();

this.callEvent = new JdbcCallEvent(this.callEvent.query);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ private JdbcOperationEvent newOperationEvent(String operationName) {
public void close() throws SQLException {
if (!this.closed) {
this.callEvent.rowCount = this.rowCount;
this.callEvent.end();
this.callEvent.commit();
this.callEvent.closed = true;
this.callEvent.close();
this.callEvent = null;
this.closed = true;
}
Expand Down