1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-17885 TRUNCATE on temporary table causes ER_GET_ERRNO

ha_innobase::truncate(): Because CREATE TEMPORARY TABLE
allows invalid table options when innodb_file_per_table=1,
do allow them also in TRUNCATE for temporary tables.
This commit is contained in:
Marko Mäkelä
2018-12-12 16:31:34 +02:00
parent 91173f9863
commit c913cd2b66
3 changed files with 20 additions and 1 deletions

View File

@ -30,3 +30,12 @@ SELECT * FROM t1;
a
1
DROP TABLE t1;
#
# MDEV-17885 TRUNCATE on temporary table causes ER_GET_ERRNO
#
CREATE TEMPORARY TABLE t1 (a INT) ENCRYPTED=NO ENGINE=InnoDB;
INSERT INTO t1 VALUES(1);
TRUNCATE t1;
SELECT * FROM t1;
a
DROP TEMPORARY TABLE t1;