2010-02-26 13:22:48 +01:00
|
|
|
--source include/have_csv.inc
|
2012-08-22 23:32:25 +02:00
|
|
|
--source include/have_innodb.inc
|
2014-08-06 13:31:55 +02:00
|
|
|
--source include/mysql_upgrade_preparation.inc
|
2010-02-26 13:22:48 +01:00
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
USE test;
|
|
|
|
|
|
|
|
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
|
|
|
copy_file std_data/bug49823.frm $MYSQLD_DATADIR/test/bug49823.frm;
|
|
|
|
copy_file std_data/bug49823.CSM $MYSQLD_DATADIR/test/bug49823.CSM;
|
|
|
|
copy_file std_data/bug49823.CSV $MYSQLD_DATADIR/test/bug49823.CSV;
|
|
|
|
|
|
|
|
SET @saved_general_log = @@GLOBAL.general_log;
|
|
|
|
SET GLOBAL general_log = OFF;
|
|
|
|
USE mysql;
|
|
|
|
FLUSH TABLES;
|
|
|
|
REPAIR TABLE test.bug49823;
|
|
|
|
RENAME TABLE general_log TO renamed_general_log;
|
|
|
|
RENAME TABLE test.bug49823 TO general_log;
|
2010-09-06 01:15:34 +02:00
|
|
|
--exec $MYSQL_UPGRADE --force 2>&1
|
2010-02-26 13:22:48 +01:00
|
|
|
DROP TABLE general_log;
|
|
|
|
RENAME TABLE renamed_general_log TO general_log;
|
|
|
|
SET GLOBAL general_log = @saved_general_log;
|
2023-01-31 22:13:41 +01:00
|
|
|
remove_file $MYSQLD_DATADIR/mariadb_upgrade_info;
|
2010-02-26 13:22:48 +01:00
|
|
|
USE test;
|