Skip to content

Commit 8bee47f

Browse files
committed
Bug #17361912 MYSQL_UPGRADE FAILS ON A SERVER WITH DISABLED INNODB
Follow up patch for some cosmetics changes.
1 parent 49f4b44 commit 8bee47f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/mysql_system_tables_fix.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,14 +660,16 @@ ALTER TABLE slave_master_info STATS_PERSISTENT=0;
660660
ALTER TABLE slave_worker_info STATS_PERSISTENT=0;
661661
ALTER TABLE slave_relay_log_info STATS_PERSISTENT=0;
662662

663-
set @have_innodb= (select count(engine) from information_schema.engines where engine='InnoDB' and support != 'NO');
663+
SET @have_innodb= (SELECT COUNT(engine) FROM information_schema.engines WHERE engine='InnoDB' AND support != 'NO');
664664
SET @str=IF(@have_innodb <> 0, "ALTER TABLE innodb_table_stats STATS_PERSISTENT=0", "SET @dummy = 0");
665665
PREPARE stmt FROM @str;
666666
EXECUTE stmt;
667+
DROP PREPARE stmt;
667668

668669
SET @str=IF(@have_innodb <> 0, "ALTER TABLE innodb_index_stats STATS_PERSISTENT=0", "SET @dummy = 0");
669670
PREPARE stmt FROM @str;
670671
EXECUTE stmt;
672+
DROP PREPARE stmt;
671673

672674
--
673675
-- Check for accounts with old pre-4.1 passwords and issue a warning

0 commit comments

Comments
 (0)