MetaDataTable not updated with autoCommit false #1534
This seems to affect Flyway 4.1 and later. So far we've been using Flyway 3 where this wasn't an issue.
If the DataSource used for Flyway has
I've searched around in the source code and I suspect the bug has probably been introduced with #851 when the
Before this commit, applying the migration and updating the meta data table (
The text was updated successfully, but these errors were encountered:
I skipped the template because it seemed mostly irrelevant. I've filled it now out below. I have now also created some test code showing the issue: https://github.com/fabian/flyway-autocommit-issue
What version of Flyway are you using?
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
What database are you using (type & version)?
What operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
HikariDataSource dataSource = new HikariDataSource(); dataSource.setJdbcUrl("jdbc:mysql://localhost:3306/flyway"); dataSource.setUsername("root"); dataSource.setAutoCommit(false); Flyway flyway = new Flyway(); flyway.setDataSource(dataSource); flyway.migrate();
What did you expect to see?
What did you see instead?