mirror of https://github.com/apache/cloudstack.git
Fix parameter index in getCount function.
This commit is contained in:
parent
fe83a85436
commit
19b15a1bdc
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue