Clean unable to drop function in db2 #1154
Closed
Labels
Milestone
Comments
umefjord
pushed a commit
to umefjord/flyway
that referenced
this issue
Jan 8, 2016
DB2 v9.7 Flyway doesn't drops a function on clean operation (from java): CREATE FUNCTION db2admin.get_version() console show no errors: But fails on followed by migrate operation: Found non-empty schema "DB2ADMIN" without metadata table! |
axelfontaine
added a commit
that referenced
this issue
Jan 19, 2016
#1154 - Drop functions with length attributes in DB2
axelfontaine
added a commit
to flyway/flywaydb.org
that referenced
this issue
Jan 19, 2016
axelfontaine
added a commit
to flyway/flywaydb.org
that referenced
this issue
Jan 19, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting the following db2 error when trying to run clean
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2.1:clean (default) on project uppfoljning: org.flywaydb.core.api.FlywayException: Unable to drop "TEST_FUNC(CHARACTER,CHARACTER): DB2 SQL Error: SQLCODE=-458, SQLSTATE=42883, SQLERRMC=UPPFOLJNING.TEST_FUNC, DRIVER=4.19.26 -> [Help 1]
From the db2 documentation
For example, assuming a function exists for which a parameter was defined as CHAR(12) on the CREATE FUNCTION statement, a reference to that function by a signature could specify this parameter as either CHAR(12), or CHAR(). The CHAR() syntax provides a way to say, "do not care about length, precision and scale attributes in finding a matching function".
A simple test case
To never care about length may be the way to fix this.
Using flywaydb version 3.2.1 and DB2 v10.5.500.107 with fixpack 5
The text was updated successfully, but these errors were encountered: