Skip to content

Commit 96fa336

Browse files
committed
Remove timeout option as configured already in bulk copy option
1 parent 93a38ac commit 96fa336

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java

-2
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,6 @@ public int[] executeBatch() throws SQLServerException, BatchUpdateException, SQL
22252225
if (null == bcOperation) {
22262226
bcOperation = new SQLServerBulkCopy(connection);
22272227
SQLServerBulkCopyOptions option = new SQLServerBulkCopyOptions(connection);
2228-
option.setBulkCopyTimeout(queryTimeout);
22292228
bcOperation.setBulkCopyOptions(option);
22302229
bcOperation.setDestinationTableName(bcOperationTableName);
22312230
if (columnMappings != null) {
@@ -2406,7 +2405,6 @@ public long[] executeLargeBatch() throws SQLServerException, BatchUpdateExceptio
24062405
if (null == bcOperation) {
24072406
bcOperation = new SQLServerBulkCopy(connection);
24082407
SQLServerBulkCopyOptions option = new SQLServerBulkCopyOptions(connection);
2409-
option.setBulkCopyTimeout(queryTimeout);
24102408
bcOperation.setBulkCopyOptions(option);
24112409
bcOperation.setDestinationTableName(bcOperationTableName);
24122410
bcOperation.setStmtColumnEncriptionSetting(this.getStmtColumnEncriptionSetting());

0 commit comments

Comments
 (0)