Discussion:
[Liquibase-user] New Topic: Generate Change Log in case sensitive database fails.
Liquibase Community Forum
2011-01-04 16:46:26 UTC
Permalink
A new topic, 'Generate Change Log in case sensitive database fails.', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=883.new#new

The text of the topic is shown below:

I tried generating a change log using many different versions of Liquibase and keep getting an error with "invalid column name". I eventually downloaded the source and debugged the code and found the problem occurs when there are two different tables with the same name, but a difference in case. Problem is in class liquibase.database.Database.DatabaseSnapshot, Method getTable :

public Table getTable(String tableName) {
for (Table table : getTables()) {
if (table.getName().equalsIgnoreCase(tableName)) {
return table;
}
}
return null;
}

changed "equalsIgnoreCase" to "equals" and appears to work. Unsure if there are problems elsewhere in the code

Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=1.0

Regards,
The Liquibase Community Forum Team.

Loading...