cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject git commit: updated refs/heads/master to 19b15a1
Date Thu, 20 Feb 2014 14:13:38 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master fe83a8543 -> 19b15a1bd


Fix parameter index in getCount function.


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

Branch: refs/heads/master
Commit: 19b15a1bdcb7f55ca363adb6edeaeaaa27117a7f
Parents: fe83a85
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Authored: Thu Feb 20 14:04:51 2014 +0100
Committer: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed: Thu Feb 20 15:13:29 2014 +0100

----------------------------------------------------------------------
 framework/db/src/com/cloud/utils/db/GenericDaoBase.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/19b15a1b/framework/db/src/com/cloud/utils/db/GenericDaoBase.java
----------------------------------------------------------------------
diff --git a/framework/db/src/com/cloud/utils/db/GenericDaoBase.java b/framework/db/src/com/cloud/utils/db/GenericDaoBase.java
index 9f18c34..cecea84 100755
--- a/framework/db/src/com/cloud/utils/db/GenericDaoBase.java
+++ b/framework/db/src/com/cloud/utils/db/GenericDaoBase.java
@@ -1878,10 +1878,10 @@ public abstract class GenericDaoBase<T, ID extends Serializable>
extends Compone
         PreparedStatement pstmt = null;
         try {
             pstmt = txn.prepareAutoCloseStatement(sql);
-            int i = 0;
+            int i = 1;
             if (clause != null) {
                 for (final Pair<Attribute, Object> value : sc.getValues()) {
-                    prepareAttribute(++i, pstmt, value.first(), value.second());
+                    prepareAttribute(i++, pstmt, value.first(), value.second());
                 }
             }
 


Mime
View raw message