mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-10679 Crash in performance schema and partitioning with discovery
Crash happened because in discover, table->work_part_info was not properly reset before execution. Fixed by resetting before calling execute alter table, create table or mysql_create_frm_image.
This commit is contained in:
10
mysql-test/suite/perfschema/r/partition.result
Normal file
10
mysql-test/suite/perfschema/r/partition.result
Normal file
@ -0,0 +1,10 @@
|
||||
#
|
||||
# MDEV-10679
|
||||
# Server crashes in in mysql_create_frm_image upon query from
|
||||
# performance schema in ps-protocol mode
|
||||
#
|
||||
CREATE TABLE t1 (i INT);
|
||||
ALTER TABLE t1 ADD PARTITION (PARTITION p VALUES LESS THAN (1));
|
||||
ERROR HY000: Partition management on a not partitioned table is not possible
|
||||
SELECT * FROM performance_schema.events_stages_summary_by_user_by_event_name;
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user