You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2013/06/27 22:57:31 UTC
[29/50] [abbrv] git commit: updated refs/heads/vmsync to 3c2aa18
CLOUDSTACK-2835: Change function from execute to executeUpdate
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1c102a05
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1c102a05
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1c102a05
Branch: refs/heads/vmsync
Commit: 1c102a0589cb5b99c2c6922e8eea0a082608410d
Parents: c059153
Author: Nitin Mehta <ni...@citrix.com>
Authored: Wed Jun 26 17:47:17 2013 +0530
Committer: Nitin Mehta <ni...@citrix.com>
Committed: Wed Jun 26 17:47:17 2013 +0530
----------------------------------------------------------------------
engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1c102a05/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
index c67a971..a70f4b9 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
@@ -213,7 +213,7 @@ public class Upgrade410to420 implements DbUpgrade {
// update templete ID of system Vms
pstmt = conn.prepareStatement("update `cloud`.`vm_instance` set vm_template_id = ? where type <> 'User' and hypervisor_type = 'KVM'");
pstmt.setLong(1, templateId);
- pstmt.execute();
+ pstmt.executeUpdate();
pstmt.close();
// Change value of global configuration parameter router.template.kvm
pstmt = conn.prepareStatement("INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'NetworkManager', 'router.template.kvm', 'systemvm-kvm-4.2', 'Name of the default router template on KVM')");