Updated Branches: refs/heads/master-6-17-stable a173130de -> 12e984f86
41-42 DB upgrade: fixed physicalNetworkUpdate method - one of the preparedStatement elements wasn't set Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/05aba494 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/05aba494 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/05aba494 Branch: refs/heads/master-6-17-stable Commit: 05aba494b5ca5886988ac5020f34c046b041ea11 Parents: a173130 Author: Alena Prokharchyk <[email protected]> Authored: Mon Jul 1 11:54:30 2013 -0700 Committer: Alena Prokharchyk <[email protected]> Committed: Tue Jul 2 10:06:09 2013 -0700 ---------------------------------------------------------------------- engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/05aba494/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 90a311b..d465af9 100644 --- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java +++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java @@ -1094,6 +1094,7 @@ public class Upgrade410to420 implements DbUpgrade { //Add internal lb vm to the list of physical network elements PreparedStatement pstmt1 = conn.prepareStatement("SELECT id FROM `cloud`.`physical_network_service_providers`" + " WHERE physical_network_id=? AND provider_name='InternalLbVm'"); + pstmt1.setLong(1, pNtwkId); ResultSet rs1 = pstmt1.executeQuery(); while (rs1.next()) { long providerId = rs1.getLong(1); @@ -1106,7 +1107,7 @@ public class Upgrade410to420 implements DbUpgrade { } } catch (SQLException e) { - throw new CloudRuntimeException("Unable existing physical networks with internal lb provider", e); + throw new CloudRuntimeException("Unable to update existing physical networks with internal lb provider", e); } finally { try { if (rs != null) {
