mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-11114 Cannot drop column referenced by CHECK constraint: Unknown column 'a' in 'virtual column function'
clarify the error message
This commit is contained in:
@@ -78,3 +78,11 @@ create table t1(c1 int, c2 int as (c1 + 1), check (c2 > 2));
|
||||
insert into t1(c1) values(1);
|
||||
insert into t1(c1) values(2);
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# MDEV-11114 Cannot drop column referenced by CHECK constraint: Unknown column 'a' in 'virtual column function'
|
||||
#
|
||||
create table t1 (a int, b int, check(a>0));
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
alter table t1 drop column a;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user