From 17c0cb48e1814f1fe2c9827b28fcf1ccdbd3b080 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Thu, 7 Nov 2013 13:34:31 -0800 Subject: [PATCH] CLOUDSTACK-5089: fixed VPCDao to set the accountId field correctly --- engine/schema/src/com/cloud/network/vpc/dao/VpcDaoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/schema/src/com/cloud/network/vpc/dao/VpcDaoImpl.java b/engine/schema/src/com/cloud/network/vpc/dao/VpcDaoImpl.java index 12868fef8ba..5b9d10f1528 100644 --- a/engine/schema/src/com/cloud/network/vpc/dao/VpcDaoImpl.java +++ b/engine/schema/src/com/cloud/network/vpc/dao/VpcDaoImpl.java @@ -68,7 +68,7 @@ public class VpcDaoImpl extends GenericDaoBase implements VpcDao{ CountByAccountId = createSearchBuilder(Long.class); CountByAccountId.select(null, Func.COUNT, CountByAccountId.entity().getId()); - CountByAccountId.and("offeringId", CountByAccountId.entity().getAccountId(), Op.EQ); + CountByAccountId.and("accountId", CountByAccountId.entity().getAccountId(), Op.EQ); CountByAccountId.and("removed", CountByAccountId.entity().getRemoved(), Op.NULL); CountByAccountId.done(); }