From 5a511cbef040c5fabbc23553083d1f14a8e33ab9 Mon Sep 17 00:00:00 2001 From: Fangjin Yang Date: Fri, 7 Dec 2012 14:47:38 -0800 Subject: [PATCH] bug fix for missing quotations creating default datasource --- .../src/main/java/com/metamx/druid/db/DatabaseRuleManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/metamx/druid/db/DatabaseRuleManager.java b/server/src/main/java/com/metamx/druid/db/DatabaseRuleManager.java index a9955d843c8..2840eb037a8 100644 --- a/server/src/main/java/com/metamx/druid/db/DatabaseRuleManager.java +++ b/server/src/main/java/com/metamx/druid/db/DatabaseRuleManager.java @@ -69,7 +69,7 @@ public class DatabaseRuleManager { List> existing = handle.select( String.format( - "SELECT id from %s where datasource=%s;", + "SELECT id from %s where datasource='%s';", ruleTable, defaultDatasource )