You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2014/09/16 09:49:44 UTC

[2/2] git commit: updated refs/heads/bugfix/CID-1116654 to 056f3f9

Fix CID-1116645

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/056f3f98
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/056f3f98
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/056f3f98

Branch: refs/heads/bugfix/CID-1116654
Commit: 056f3f98bb254a7366c37f0af75185163f0a1a0d
Parents: 2f0f6f2
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Tue Sep 16 09:49:19 2014 +0200
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Tue Sep 16 09:49:19 2014 +0200

----------------------------------------------------------------------
 engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/056f3f98/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
index 18303b0..dab2b46 100755
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
@@ -265,8 +265,8 @@ public class Upgrade410to420 implements DbUpgrade {
             while (clusterIt.hasNext()) {
                 clusterId = clusterIt.next();
                 keyValues = detailsMap.get(clusterId);
+                clusterDetailsInsert = conn.prepareStatement("INSERT INTO `cloud`.`cluster_details` (cluster_id, name, value) VALUES (?, ?, ?)");
                 for (Pair<String, String> keyValuePair : keyValues) {
-                    clusterDetailsInsert = conn.prepareStatement("INSERT INTO `cloud`.`cluster_details` (cluster_id, name, value) VALUES (?, ?, ?)");
                     key = keyValuePair.first();
                     val = keyValuePair.second();
                     clusterDetailsInsert.setLong(1, clusterId);