CS-15516 com.cloud.utils.exception.CloudRuntimeException: Exception while adding PhysicalNetworks : Caused by: java.sql.SQLException: No value specified for parameter 1

Reviewed-By: Prachi

- Same bug in 303 to 304.
This commit is contained in:
prachi 2012-07-10 10:39:15 -07:00
parent ab6c234b62
commit 65d43a37da
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ public class Upgrade303to304 extends Upgrade30xBase implements DbUpgrade {
//Clean up any vnets that have no live networks/nics
pstmt4 = conn.prepareStatement("SELECT v.id, v.vnet, v.reservation_id FROM `cloud`.`op_dc_vnet_alloc` v LEFT JOIN networks n ON CONCAT('vlan://' , v.vnet) = n.broadcast_uri WHERE v.taken IS NOT NULL AND v.data_center_id = ? AND n.broadcast_uri IS NULL AND n.removed IS NULL");
pstmt4.setLong(1, zoneId);
rsVNet = pstmt4.executeQuery();
while(rsVNet.next()){
Long vnet_id = rsVNet.getLong(1);