bug fix for missing quotations creating default datasource

This commit is contained in:
Fangjin Yang 2012-12-07 14:47:38 -08:00
parent 35362b3e6b
commit 5a511cbef0
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class DatabaseRuleManager
{ {
List<Map<String, Object>> existing = handle.select( List<Map<String, Object>> existing = handle.select(
String.format( String.format(
"SELECT id from %s where datasource=%s;", "SELECT id from %s where datasource='%s';",
ruleTable, ruleTable,
defaultDatasource defaultDatasource
) )