summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/t/partition.test
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-05-25 11:51:43 +0300
committerMonty <monty@mariadb.org>2018-05-26 12:49:25 +0300
commitd8da920264a0321e6d03b3cbe3c3b414f622aefa (patch)
tree1457dcbdcaeade1c13bcbcc124fbd97e10e74f34 /mysql-test/suite/perfschema/t/partition.test
parent199517f501b5d50daf85d3d5620cb391c03fddfe (diff)
downloadmariadb-git-d8da920264a0321e6d03b3cbe3c3b414f622aefa.tar.gz
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.
Diffstat (limited to 'mysql-test/suite/perfschema/t/partition.test')
-rw-r--r--mysql-test/suite/perfschema/t/partition.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/suite/perfschema/t/partition.test b/mysql-test/suite/perfschema/t/partition.test
new file mode 100644
index 00000000000..073a41e9252
--- /dev/null
+++ b/mysql-test/suite/perfschema/t/partition.test
@@ -0,0 +1,15 @@
+--source include/have_perfschema.inc
+
+--echo #
+--echo # MDEV-10679
+--echo # Server crashes in in mysql_create_frm_image upon query from
+--echo # performance schema in ps-protocol mode
+--echo #
+
+CREATE TABLE t1 (i INT);
+--error ER_PARTITION_MGMT_ON_NONPARTITIONED
+ALTER TABLE t1 ADD PARTITION (PARTITION p VALUES LESS THAN (1));
+--disable_result_log
+SELECT * FROM performance_schema.events_stages_summary_by_user_by_event_name;
+--enable_result_log
+DROP TABLE t1;