Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery-Wasty committed Apr 16, 2024
1 parent c537206 commit 28ba94a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
import java.sql.Connection;
import java.sql.Date;
import java.sql.ResultSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8444,13 +8444,15 @@ boolean supportsTransactions() throws SQLServerException {
try {
this.connectionCommand("SELECT @@TRANCOUNT", "SQLServerConnection.supportsTransactions");
} catch (SQLServerException e) {
if (e.getMessage().equals(SQLServerException.getErrString("R_transactionsNotSupported"))) {
return supportsTransactions = false;
if (e.getMessage().trim().equals(SQLServerException.getErrString("R_transactionsNotSupported"))) {
supportsTransactions = false;
return false;
}
throw e;
}

return supportsTransactions = true;
supportsTransactions = true;
return true;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ public int executeUpdate() throws SQLServerException, SQLTimeoutException {
}

checkClosed();

connection.unprepareUnreferencedPreparedStatementHandles(false);
executeStatement(new PrepStmtExecCmd(this, EXECUTE_UPDATE));

Expand Down

This file was deleted.

0 comments on commit 28ba94a

Please sign in to comment.