mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fix for bug #6859 (after Sanja's review)
Added check which throws ER_WRONG_OBJECT error in case the .frm doesn't contain a valid table type (e.g. view or trigger)
This commit is contained in:
@@ -515,4 +515,14 @@ create table test.t1 like x;
|
||||
drop table if exists test.t1;
|
||||
--enable_warnings
|
||||
|
||||
#
|
||||
# Bug #6859: Bogus error message on attempt to CREATE TABLE t LIKE view
|
||||
#
|
||||
create database mysqltest;
|
||||
use mysqltest;
|
||||
create view v1 as select 'foo' from dual;
|
||||
--error 1347
|
||||
create table t1 like v1;
|
||||
drop view v1;
|
||||
drop database mysqltest;
|
||||
# End of 4.1 tests
|
||||
|
||||
Reference in New Issue
Block a user