1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-29697 Assertion failure in Diagnostics_area::set_ok_status

upon CREATE OR REPLACE causing ER_UPDATE_TABLE_USED

Missed set return status to 1.
This commit is contained in:
Aleksey Midenkov
2022-10-05 17:46:51 +03:00
parent 0779e2cb10
commit 074e358213
3 changed files with 22 additions and 0 deletions

View File

@ -532,3 +532,12 @@ SELECT * FROM t3;
ERROR HY000: Table 't3' was not locked with LOCK TABLES
UNLOCK TABLES;
DROP TABLE t3;
#
# MDEV-29697 Assertion failure in Diagnostics_area::set_ok_status
# upon CREATE OR REPLACE causing ER_UPDATE_TABLE_USED
#
CREATE TABLE t (a INT) ENGINE=MyISAM;
CREATE TABLE tm (a INT) ENGINE=MERGE UNION(t);
CREATE OR REPLACE TABLE t LIKE tm;
ERROR HY000: Table 'tm' is specified twice, both as a target for 'CREATE' and as a separate source for data
DROP TABLE IF EXISTS tm, t;