mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-11231 Server crashes in check_duplicate_key on CREATE TABLE ... SELECT
be consistent and don't include the table name into the error message, no other CREATE TABLE error does it. (the crash happened, because thd->lex->query_tables was NULL)
This commit is contained in:
@ -2088,3 +2088,9 @@ drop function f1;
|
||||
#
|
||||
--error ER_TABLE_MUST_HAVE_COLUMNS
|
||||
create table t1;
|
||||
|
||||
#
|
||||
# MDEV-11231 Server crashes in check_duplicate_key on CREATE TABLE ... SELECT
|
||||
#
|
||||
create table t1 (i int, j int, key(i), key(i)) as select 1 as i, 2 as j;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user