From c2d7dbe30b30437f339e7c127ae2c0ba13222e7e Mon Sep 17 00:00:00 2001 From: esobmar Date: Mon, 3 Sep 2018 14:58:01 +0100 Subject: Refactor LogServletTest to use DB Change-Id: I42623a0650877fa9747a2f2983b0512bec616437 Signed-off-by: Mariusz Sobucki Issue-ID: DMAAP-101 --- .../java/org/onap/dmaap/datarouter/provisioning/beans/Parameters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datarouter-prov/src/main/java') diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Parameters.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Parameters.java index 595a86db..8e9d5bfd 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Parameters.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/Parameters.java @@ -122,7 +122,7 @@ public class Parameters extends Syncable { @SuppressWarnings("resource") Connection conn = db.getConnection(); Statement stmt = conn.createStatement(); - String sql = "select KEYNAME, VALUE from PARAMETERS where KEYNAME = \"" + k + "\""; + String sql = "select KEYNAME, VALUE from PARAMETERS where KEYNAME = '" + k + "'"; ResultSet rs = stmt.executeQuery(sql); if (rs.next()) { v = new Parameters(rs); -- cgit 1.2.3-korg