Skip to content

Commit

Permalink
Update src/main/java/com/exasol/dbbuilder/dialects/AbstractImmediateD…
Browse files Browse the repository at this point in the history
…atabaseObjectWriter.java

Co-authored-by: Sebastian Bär <[email protected]>
  • Loading branch information
kaklakariada and redcatbear authored Sep 24, 2024
1 parent fe0a506 commit 4716672
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void truncate(final Table table) {
public void write(final Table table, final Stream<List<Object>> rows) {
final String valuePlaceholders = "?" + ", ?".repeat(table.getColumnCount() - 1);
final String sql = "INSERT INTO " + table.getFullyQualifiedName() + " VALUES(" + valuePlaceholders + ")";
try (AutoCommit autoCommit = AutoCommit.tryDeactivate(connection);
try (final AutoCommit autoCommit = AutoCommit.tryDeactivate(connection);
final PreparedStatement preparedStatement = this.connection.prepareStatement(sql)) {
rows.forEach(row -> addBatch(table, preparedStatement, row));
preparedStatement.executeBatch();
Expand Down

0 comments on commit 4716672

Please sign in to comment.