sqlFile should fail when file does not exists

Description

steps
expected

A clear exception message saying that file/resource no-such-file.sql cannot be found.

observed

Problem silently ignored.

  1. SQLFileChange.openSqlStream() returns null

  2. SQLFileChange.getSql() returns null

  3. AbstractSQLChange.generateStatements() converts this into new SqlStatement[0]

Environment

?

Activity

Show:

Piotr Findeisen May 27, 2014 at 10:23 PM

Cheating... my was the earlier one of "duplicates"

Nathan Voxland May 27, 2014 at 5:33 PM

Fixed as

Jérémie Panzer May 16, 2014 at 8:11 AM

This just happened to me too, I had a typo in the file name and liquibase didn't warn me about it, it said the changeset was applied successfully.

Duplicate

Details

Reporter

Fix versions

Affects versions

Priority

Created March 26, 2014 at 2:23 PM
Updated May 27, 2014 at 10:23 PM
Resolved May 27, 2014 at 5:33 PM