summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorThomas Nelson <nelson24@att.com>2019-02-14 17:18:49 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-14 17:18:49 +0000
commit4aad675a95e8106c65ac96846c3e573a11079ceb (patch)
treeaf984b1dca9f0ab2b45f6506cc7815cd2e6e9bbe /src/main/java
parent4771ff0c0b5b68209e29bec88a0b2e566ef50834 (diff)
parentcf87d8d10c075810ea0122087f8eb6ea74dc305b (diff)
Merge "Introduced local variable"
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java b/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
index ff77bfde..045abd98 100644
--- a/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
+++ b/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
@@ -254,6 +254,7 @@ public class MusicConditional {
StringBuilder fieldsString = new StringBuilder("(vector_ts"+",");
StringBuilder valueString = new StringBuilder("(" + "?" + ",");
String vector = String.valueOf(Thread.currentThread().getId() + System.currentTimeMillis());
+ String localPrimaryKey;
queryObject.addValue(vector);
if(casscadeColumn!=null && casscadeColumnValues!=null) {
fieldsString.append(casscadeColumn).append(" ,");
@@ -267,8 +268,8 @@ public class MusicConditional {
fieldsString.append(entry.getKey());
Object valueObj = entry.getValue();
if (primaryKeyName.equals(entry.getKey())) {
- primaryKey = entry.getValue() + "";
- primaryKey = primaryKey.replace("'", "''");
+ localPrimaryKey = entry.getValue() + "";
+ localPrimaryKey = localPrimaryKey.replace("'", "''");
}
DataType colType = null;
try {