rename var to be less confusing

This commit is contained in:
fjy 2014-03-27 15:48:37 -07:00
parent bc4bc277f2
commit 21e54d8060
1 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ public class DatabaseRuleManager
public static void createDefaultRule(
final IDBI dbi,
final String ruleTable,
final String defaultTier,
final String defaultDatasourceName,
final ObjectMapper jsonMapper
)
{
@ -81,7 +81,7 @@ public class DatabaseRuleManager
ruleTable
)
)
.bind("dataSource", defaultTier)
.bind("dataSource", defaultDatasourceName)
.list();
if (!existing.isEmpty()) {
@ -103,8 +103,8 @@ public class DatabaseRuleManager
ruleTable
)
)
.bind("id", String.format("%s_%s", defaultTier, version))
.bind("dataSource", defaultTier)
.bind("id", String.format("%s_%s", defaultDatasourceName, version))
.bind("dataSource", defaultDatasourceName)
.bind("version", version)
.bind("payload", jsonMapper.writeValueAsString(defaultRules))
.execute();