Skip to content

Commit

Permalink
Merge pull request #101 from stephlag/master
Browse files Browse the repository at this point in the history
Fix problem on H2 when trying to use forceReleaseLocks
  • Loading branch information
nvoxland committed Feb 5, 2013
2 parents 50f1c7e + d4c6d1b commit a720582
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,14 @@ public void checkDatabaseChangeLogTable(boolean updateExistingNullChecksums, Dat
boolean hasLiquibase = changeLogTable.getColumn("LIQUIBASE") != null;
boolean liquibaseColumnNotRightSize = false;
if (!connection.getDatabaseProductName().equals("SQLite")) {
liquibaseColumnNotRightSize = changeLogTable.getColumn("LIQUIBASE").getType().getColumnSize() != 20;
Integer columnSize = changeLogTable.getColumn("LIQUIBASE").getType().getColumnSize();
liquibaseColumnNotRightSize =columnSize!=null && columnSize != 20;
}
boolean hasOrderExecuted = changeLogTable.getColumn("ORDEREXECUTED") != null;
boolean checksumNotRightSize = false;
if (!connection.getDatabaseProductName().equals("SQLite")) {
checksumNotRightSize = changeLogTable.getColumn("MD5SUM").getType().getColumnSize() != 35;
Integer columnSize = changeLogTable.getColumn("MD5SUM").getType().getColumnSize();
checksumNotRightSize = columnSize!=null && columnSize != 35;
}
boolean hasExecTypeColumn = changeLogTable.getColumn("EXECTYPE") != null;

Expand Down

0 comments on commit a720582

Please sign in to comment.