Skip to content

Commit 80d67c9

Browse files
authored
Update BatchExecutionWithBulkCopyTest.java
1 parent 5959f2f commit 80d67c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/microsoft/sqlserver/jdbc/preparedStatement/BatchExecutionWithBulkCopyTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,11 +1435,11 @@ public void testInsertSelectFallbackToNormalExecution() throws Exception {
14351435

14361436
// Attempt unsupported INSERT-SELECT query for bulk copy api
14371437
String insertSelectSQL = "INSERT INTO " + tableNameDestination + " SELECT * FROM " + tableNameSource
1438-
+ " WHERE id = ?";
1438+
+ " WHERE value = ?";
14391439

14401440
try (SQLServerPreparedStatement pstmt = (SQLServerPreparedStatement) connection
14411441
.prepareStatement(insertSelectSQL)) {
1442-
pstmt.setInt(1, 1);
1442+
pstmt.setString(1, "TestValue1");
14431443
pstmt.addBatch();
14441444
pstmt.executeBatch(); // This should fall back to normal execution flow
14451445
}

0 commit comments

Comments
 (0)