From b1a34ef3359d7bad47c41f234b925258511a07ac Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Mon, 1 Jul 2013 11:54:30 -0700 Subject: [PATCH] 41-42 DB upgrade: fixed physicalNetworkUpdate method - one of the preparedStatement elements wasn't set --- engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java index a70f4b93fca..da683485908 100644 --- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java +++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java @@ -1112,6 +1112,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); @@ -1124,7 +1125,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) {