Skip to content

Commit

Permalink
Do not use batched statements for Postgres LoadDataChange LB-744
Browse files Browse the repository at this point in the history
  • Loading branch information
wwillard7800 committed Oct 1, 2020
1 parent adcbc0f commit 100d0d2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ public void setColumns(List<LoadDataColumnConfig> columns) {
public SqlStatement[] generateStatements(Database database) {
boolean databaseSupportsBatchUpdates = false;
try {
databaseSupportsBatchUpdates = database.supportsBatchUpdates();
if (database instanceof PostgresDatabase) {
databaseSupportsBatchUpdates = false;
}
else {
databaseSupportsBatchUpdates = database.supportsBatchUpdates();
}
} catch (DatabaseException e) {
throw new UnexpectedLiquibaseException(e);
}
Expand Down

0 comments on commit 100d0d2

Please sign in to comment.