summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/invisible_partition.test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:07:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:07:14 +0000
commita175314c3e5827eb193872241446f2f8f5c9d33c (patch)
treecd3d60ca99ae00829c52a6ca79150a5b6e62528b /mysql-test/main/invisible_partition.test
parentInitial commit. (diff)
downloadmariadb-10.5-a175314c3e5827eb193872241446f2f8f5c9d33c.tar.xz
mariadb-10.5-a175314c3e5827eb193872241446f2f8f5c9d33c.zip
Adding upstream version 1:10.5.12.upstream/1%10.5.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/invisible_partition.test')
-rw-r--r--mysql-test/main/invisible_partition.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/main/invisible_partition.test b/mysql-test/main/invisible_partition.test
new file mode 100644
index 00000000..dd3b3eea
--- /dev/null
+++ b/mysql-test/main/invisible_partition.test
@@ -0,0 +1,24 @@
+--source include/have_partition.inc
+--source include/have_binlog_format_row.inc
+--source include/have_debug.inc
+
+CREATE TABLE t1 (a INT NOT NULL, KEY (a)) ENGINE=MEMORY PARTITION BY KEY(a) PARTITIONS 4;
+INSERT INTO t1 VALUES (1),(2);
+SET debug_dbug="+d,test_pseudo_invisible";
+--error ER_INTERNAL_ERROR
+ALTER TABLE t1 REBUILD PARTITION p2;
+SET debug_dbug='';
+ALTER TABLE t1 REPAIR PARTITION p1,p2,p3;
+
+# Cleanup
+Drop table t1;
+#Mdev-14850
+CREATE TABLE t1 (i INT) PARTITION BY HASH (i) PARTITIONS 3;
+SET debug_dbug= "+d,test_pseudo_invisible";
+--error ER_INTERNAL_ERROR
+ALTER TABLE t1 COALESCE PARTITION 1;
+SET debug_dbug= "";
+SELECT * FROM t1;
+
+# Cleanup
+DROP TABLE t1;