mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
53 lines
1.3 KiB
Text
53 lines
1.3 KiB
Text
|
#
|
||
|
# Start of 10.4 tests
|
||
|
#
|
||
|
#
|
||
|
# MDEV-29481 mariadb-upgrade prints confusing statement
|
||
|
#
|
||
|
SET @debug_key_flags=NULL;
|
||
|
CREATE PROCEDURE debug_show_key_flags()
|
||
|
BEGIN
|
||
|
IF @debug_key_flags IS TRUE
|
||
|
THEN
|
||
|
FLUSH TABLES;
|
||
|
-- Wrap SET into EXECUTE IMMEDIATE to avoid
|
||
|
-- parse time "Unknown system variable" errors in release builds.
|
||
|
EXECUTE IMMEDIATE "SET debug_dbug='+d,key'";
|
||
|
SELECT * FROM t1 LIMIT 0;
|
||
|
EXECUTE IMMEDIATE "SET debug_dbug=''";
|
||
|
END IF;
|
||
|
END;
|
||
|
$$
|
||
|
SHOW CREATE TABLE t1;
|
||
|
Table Create Table
|
||
|
t1 CREATE TABLE `t1` (
|
||
|
`d` double(18,7) DEFAULT NULL,
|
||
|
KEY `d` (`d`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||
|
CHECK TABLE t1 FOR UPGRADE;
|
||
|
Table Op Msg_type Msg_text
|
||
|
test.t1 check status OK
|
||
|
DROP TABLE t1;
|
||
|
CALL debug_show_key_flags();
|
||
|
ALTER TABLE t1 MODIFY d DOUBLE DEFAULT 10, ALGORITHM=INSTANT;
|
||
|
CALL debug_show_key_flags();
|
||
|
DROP TABLE t1;
|
||
|
CALL debug_show_key_flags();
|
||
|
ALTER TABLE t1 MODIFY d DOUBLE DEFAULT 10, ALGORITHM=NOCOPY;
|
||
|
CALL debug_show_key_flags();
|
||
|
DROP TABLE t1;
|
||
|
CALL debug_show_key_flags();
|
||
|
REPAIR TABLE t1;
|
||
|
Table Op Msg_type Msg_text
|
||
|
test.t1 repair status OK
|
||
|
CALL debug_show_key_flags();
|
||
|
DROP TABLE t1;
|
||
|
CALL debug_show_key_flags();
|
||
|
ALTER TABLE t1 FORCE;
|
||
|
CALL debug_show_key_flags();
|
||
|
DROP TABLE t1;
|
||
|
DROP PROCEDURE debug_show_key_flags;
|
||
|
#
|
||
|
# End of 10.4 tests
|
||
|
#
|