Skip to content

Commit

Permalink
Fixed incorrect Database Properties initialization - the code was try…
Browse files Browse the repository at this point in the history
…ing to compare entry values instead of keys
  • Loading branch information
awal11 committed Feb 2, 2014
1 parent a3e868a commit ab86670
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -64,13 +64,13 @@ private Properties getConnectionProperties() throws IOException {
if (customPropertiesFile.canRead()) {
connectionProperties.load(new FileInputStream(customPropertiesFile));
}
if (!connectionProperties.contains("oracle.user")) {
if (!connectionProperties.containsKey("oracle.user")) {
connectionProperties.setProperty("oracle.user", "flyway");
}
if (!connectionProperties.contains("oracle.password")) {
if (!connectionProperties.containsKey("oracle.password")) {
connectionProperties.setProperty("oracle.password", "flyway");
}
if (!connectionProperties.contains("oracle.url")) {
if (!connectionProperties.containsKey("oracle.url")) {
connectionProperties.setProperty("oracle.url", "jdbc:oracle:thin:@localhost:1521:XE");
}
return connectionProperties;
Expand Down

0 comments on commit ab86670

Please sign in to comment.