Updated Branches: refs/heads/4.2 087a9ea76 -> 6e953ae87
CLOUDSTACK-4279. Usage manager - Parameter index out of range error Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6e953ae8 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6e953ae8 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6e953ae8 Branch: refs/heads/4.2 Commit: 6e953ae8732b8450b82893b98b05e48494ff6df0 Parents: 087a9ea Author: Likitha Shetty <[email protected]> Authored: Tue Aug 13 13:28:34 2013 +0530 Committer: Likitha Shetty <[email protected]> Committed: Tue Aug 13 15:55:59 2013 +0530 ---------------------------------------------------------------------- engine/schema/src/com/cloud/usage/dao/UsageDaoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6e953ae8/engine/schema/src/com/cloud/usage/dao/UsageDaoImpl.java ---------------------------------------------------------------------- diff --git a/engine/schema/src/com/cloud/usage/dao/UsageDaoImpl.java b/engine/schema/src/com/cloud/usage/dao/UsageDaoImpl.java index 9dd1c59..8b79257 100644 --- a/engine/schema/src/com/cloud/usage/dao/UsageDaoImpl.java +++ b/engine/schema/src/com/cloud/usage/dao/UsageDaoImpl.java @@ -66,7 +66,7 @@ public class UsageDaoImpl extends GenericDaoBase<UsageVO, Long> implements Usage private static final String UPDATE_VM_DISK_STATS = "UPDATE cloud_usage.vm_disk_statistics SET net_io_read=?, net_io_write=?, current_io_read=?, current_io_write=?, agg_io_read=?, agg_io_write=?, " + "net_bytes_read=?, net_bytes_write=?, current_bytes_read=?, current_bytes_write=?, agg_bytes_read=?, agg_bytes_write=? WHERE id=?"; private static final String INSERT_USGAE_RECORDS = "INSERT INTO cloud_usage.cloud_usage (zone_id, account_id, domain_id, description, usage_display, usage_type, raw_usage, vm_instance_id, vm_name, offering_id, template_id, " + - "usage_id, type, size, network_id, start_date, end_date, virtual_size) VALUES (?,?,?,?,?,?,?,?,?, ?, ?, ?,?,?,?,?,?)"; + "usage_id, type, size, network_id, start_date, end_date, virtual_size) VALUES (?,?,?,?,?,?,?,?,?, ?, ?, ?,?,?,?,?,?,?)"; protected final static TimeZone s_gmtTimeZone = TimeZone.getTimeZone("GMT");
