You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2013/11/07 22:37:49 UTC

git commit: updated refs/heads/master to 99acb97

Updated Branches:
  refs/heads/master cff5ea094 -> 99acb9785


CLOUDSTACK-5089: fixed VPCDao to set the accountId field correctly


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

Branch: refs/heads/master
Commit: 99acb97854c3bbad50a524bcc60ce8e441865c1d
Parents: cff5ea0
Author: Alena Prokharchyk <al...@citrix.com>
Authored: Thu Nov 7 13:34:31 2013 -0800
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Thu Nov 7 13:38:13 2013 -0800

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/99acb978/engine/schema/src/com/cloud/network/vpc/dao/VpcDaoImpl.java
----------------------------------------------------------------------
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 ba030e9..74d3787 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<VpcVO, Long> 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();
     }