Skip to content

Commit

Permalink
1916017 - use the originally provided case.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Mar 17, 2008
1 parent 3a8e3ab commit ad3b8a3
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -619,13 +619,13 @@ public boolean doesDatabaseNeedConfigured() {

protected boolean prefixConfigDatabase(Database targetTables) {
try {
String tblPrefix = this.tablePrefix.toLowerCase() + "_";
String tblPrefix = this.tablePrefix + "_";

Table[] tables = targetTables.getTables();

boolean createTables = false;
for (Table table : tables) {
table.setName(tblPrefix + table.getName().toLowerCase());
table.setName(tblPrefix + table.getName());
fixForeignKeys(table, tblPrefix, false);

if (getMetaDataFor(getDefaultCatalog(), getDefaultSchema(), table.getName(), false) == null) {
Expand Down Expand Up @@ -677,7 +677,7 @@ protected void fixForeignKeys(Table table, String tablePrefix, boolean clone) th
key = (ForeignKey) key.clone();
table.addForeignKey(key);
}
String prefixedName = tablePrefix + key.getForeignTableName().toLowerCase();
String prefixedName = tablePrefix + key.getForeignTableName();
key.setForeignTableName(prefixedName);
key.setName(tablePrefix + key.getName());
}
Expand Down

0 comments on commit ad3b8a3

Please sign in to comment.