Flyway fails to drop aggregate functions from postgres on clean #2095
Labels
Milestone
Comments
Thanks for the clear report and the concise test case. This was a great help to reproduce this issue. I couldn't reproduce for 9.6, but could do so on our 9.5 and 9.4 instances in our infrastructure. It turns out that the PG JDBC driver can be inconsistent (don't ask me why) in its conversion of boolean values to strings. This in turn caused our reading of the boolean flag whether a function is in fact an aggregate to return incorrect results when evaluating whether it was true. We have now switched to a more robust algorithm, which we couldn't get to fail against any PG version. Fixed. |
axelfontaine
added a commit
to flyway/flywaydb.org
that referenced
this issue
Aug 2, 2018
dohrayme
pushed a commit
to dohrayme/flyway
that referenced
this issue
Feb 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which version and edition of Flyway are you using?
flyway community , 5.1.4
group: 'org.flywaydb', name: 'flyway-core', version: '5.1.4'
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Gradle plugin
Which database are you using (type & version)?
Postgres 9.6
Which operating system are you using?
Mac OSX (though using dockerized postgres
postgres:9.6-alpine
).What did you do?
I created an aggregate function, then attempted to do a
flywayClean
task in gradle. Code is supplied below:What did you expect to see?
I expected the aggregate functions to be dropped, or at very least be given the option to ignore these errors and get warnings instead.
What did you see instead?
The text was updated successfully, but these errors were encountered: