2.0.4 regression: inserts and nulls

I rolled back the feature that caused the regression, I’ll hopefully have a 2.0.5 release out tomorrow.


Nathan

In Liquibase 2.0.3 the following changeset works:


 

 


…where the “created_on” column is of Liquibase type date.


In 2.0.4 it fails (I ran it against an H2 database in both cases):


Running com.foobar.TestCaseAddFrob

SEVERE 4/30/12 5:39 PM:liquibase: Change Set com.foobar::frob-module.frob.DefaultData::lnelson failed.  Error: org.h2.jdbc.JdbcSQLException: Cannot parse “DATE” constant “null”; SQL statement:

INSERT INTO frob(id, created_on) VALUES(?, ?) – (?1, ?2) [22007-166]

liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Cannot parse “DATE” constant “null”; SQL statement:

INSERT INTO frob(id, created_on) VALUES(?, ?) – (?1, ?2) [22007-166]

valueDate?  Guh; I think this means that several hundred of our changesets will be invalid.


Best,

Laird

http://about.me/lairdnelson

Looks like I hit https://liquibase.jira.com/browse/CORE-1152.


http://about.me/lairdnelson