mirror of
https://github.com/MariaDB/server.git
synced 2025-02-13 17:05:35 +01:00
![Aleksey Midenkov](/assets/img/avatar_default.png)
Dead code cleanup: part_info->num_parts usage was wrong and working incorrectly in mysql_drop_partitions() because num_parts is already updated in prep_alter_part_table(). We don't have to update part_info->partitions because part_info is destroyed at alter_partition_lock_handling(). Cleanups: - DBUG_EVALUATE_IF() macro replaced by shorter form DBUG_IF(); - Typo in ER_KEY_COLUMN_DOES_NOT_EXITS. Refactorings: - Splitted write_log_replace_delete_frm() into write_log_delete_frm() and write_log_replace_frm(); - partition_info via DDL_LOG_STATE; - set_part_info_exec_log_entry() removed. DBUG_EVALUATE removed DBUG_EVALUTATE was only added for consistency together with DBUG_EVALUATE_IF. It is not used anywhere in the code. DBUG_SUICIDE() fix on release build On release DBUG_SUICIDE() was statement. It was wrong as DBUG_SUICIDE() is used in expression context.
22 lines
787 B
Text
22 lines
787 B
Text
--source include/have_innodb.inc
|
|
#
|
|
# Bug#44571 InnoDB Plugin crashes on ADD INDEX
|
|
# http://bugs.mysql.com/44571
|
|
# Please also refer to related fix in
|
|
# http://bugs.mysql.com/47621
|
|
#
|
|
|
|
CREATE TABLE bug44571 (foo INT) ENGINE=InnoDB;
|
|
ALTER TABLE bug44571 CHANGE foo bar INT;
|
|
# Create index with the old column name will fail,
|
|
# because the CHANGE foo bar is successful. And
|
|
# the column name change would communicate to
|
|
# InnoDB with the fix from bug #47621
|
|
-- error ER_KEY_COLUMN_DOES_NOT_EXIST
|
|
ALTER TABLE bug44571 ADD INDEX bug44571b (foo);
|
|
# The following create indexes should succeed,
|
|
# indirectly confirm the CHANGE foo bar is successful.
|
|
ALTER TABLE bug44571 ADD INDEX bug44571c (bar);
|
|
DROP INDEX bug44571c ON bug44571;
|
|
CREATE INDEX bug44571c ON bug44571 (bar);
|
|
DROP TABLE bug44571;
|