You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the following postgresql script in a migration:
DROP FUNCTION IF EXISTS Test();
CREATE FUNCTION Test() RETURNS VOID AS $$
BEGIN
RAISE WARNING 'This is a warning';
-- RAISE EXCEPTION 'This is an error';
END;
$$ LANGUAGE plpgsql;
SELECT Test();
2.. You will see This is a warning.
3.. Now, uncomment the RAISE EXCEPTION.
4.. You will see the error, but the warning will never get logged.
This means that if we have a broken script, we cannot use the log for debugging purposes because Flyway will not print them out.
Expected behavior: Flyway should print Connection.getWarnings() before handling statement errors.
The text was updated successfully, but these errors were encountered:
cowwoc
changed the title
Flyway does not show warnings on migration failure
Flyway suppresses warnings silently on SQLException
Sep 16, 2014
Flyway 3.0
2.. You will see
This is a warning
.3.. Now, uncomment the
RAISE EXCEPTION
.4.. You will see the error, but the warning will never get logged.
This means that if we have a broken script, we cannot use the log for debugging purposes because Flyway will not print them out.
Expected behavior: Flyway should print
Connection.getWarnings()
before handling statement errors.The text was updated successfully, but these errors were encountered: