Changed prepare name to more distinctive name
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 24 Sep 2014 15:52:31 +0000 (21:22 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 24 Sep 2014 15:52:31 +0000 (21:22 +0530)
CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl

index 7b01d5c003be11e01018d1d6ec808433cb0114c5..f4acee9e6574a506042a2979d16616b1a4e320fa 100644 (file)
@@ -349,9 +349,9 @@ ALTER TABLE civicrm_case
 -- CRM-15343 set the auto increment civicrm_case_type.id start point to max id to avoid conflict in future insertion
 SELECT @max_case_type_id := max(id) from civicrm_case_type;
 SET @query  = CONCAT("ALTER TABLE civicrm_case_type AUTO_INCREMENT = ", @max_case_type_id);
-PREPARE stmt FROM @query;
-EXECUTE stmt;
-DEALLOCATE PREPARE stmt;
+PREPARE alter_case_type_auto_inc FROM @query;
+EXECUTE alter_case_type_auto_inc;
+DEALLOCATE PREPARE alter_case_type_auto_inc;
 
 DELETE FROM civicrm_option_value WHERE option_group_id = @option_group_id_case_type;