-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loadData fails to insert data when usePreparedStatements=true #1551
Comments
We have also encountered this issue with Liquibase version 3.10.3 which was pulled in by Spring Boot since Spring Boot version 2.4.1. |
We also experienced the same with Liquibase 4.7.1 and MySQL and mysql-connector-java JDBC driver 8.0.25. Everything works well when usePreparedStatements="false" |
Can still confirm this issue with MariaDB 10.7.1 and liquibase version 4.8.0. |
ditto for similar mariadb and liquibase v. 4.9.0 |
The cause of this issue is described here: a50e90b |
Look like it got fixed for liquibase |
Environment
Liquibase Version: 4.2.0 (also reproducible in 4.1.1)
Liquibase Integration & Version: spring boot, but is reproducible by cli (see below)
Liquibase Extension(s) & Version:
Database Vendor & Version: postgres:10.7
Operating System Type & Version:
Description
loadData
change type fails to insert data whenusePreparedStatements=true
. The update operation completes without any error.Steps To Reproduce
I have tried to simplify the steps to reproduce using cli instead of spring boot integration.
Execute the following to run a temporary postgres docker:
app_user.csv
with the following content:changelog.xml
with the following changesets:liquibase update
Actual Behavior
app_user
table is createdapp_user
table is emptydatabasechangelog
table has both changesets executedExpected/Desired Behavior
app_user
table is createdapp_user
table is populated with the contents from csv filedatabasechangelog
table has both changesets executedIf I change the
usePreparedStatements="true"
tousePreparedStatements="false"
in theloadData
changesets, the data is populated correctly.I have attached the sample project to reproduce. Please modify the drivers location to execute it.
postgres.zip
The text was updated successfully, but these errors were encountered: