diff options
author | Thomas Nelson <nelson24@att.com> | 2019-02-14 17:18:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-14 17:18:49 +0000 |
commit | 4aad675a95e8106c65ac96846c3e573a11079ceb (patch) | |
tree | af984b1dca9f0ab2b45f6506cc7815cd2e6e9bbe /src/main | |
parent | 4771ff0c0b5b68209e29bec88a0b2e566ef50834 (diff) | |
parent | cf87d8d10c075810ea0122087f8eb6ea74dc305b (diff) |
Merge "Introduced local variable"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java | 5 |
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 { |