Fix regression!

This commit is contained in:
hemny 2020-08-04 15:55:55 +08:00 committed by Gitee
parent 19e683e297
commit d9572b06eb
1 changed files with 9 additions and 5 deletions

View File

@ -922,14 +922,18 @@ drop table float8range_test;
--
create domain mydomain as int4;
create type mydomainrange as range(subtype=mydomain);
ERROR: type "mydomain" does not exist
select '[4,50)'::mydomainrange @> 7::mydomain;
ERROR: type "mydomainrange" does not exist
LINE 1: select '[4,50)'::mydomainrange @> 7::mydomain;
^
?column?
----------
t
(1 row)
drop domain mydomain; -- fail
ERROR: cannot drop type mydomain because other objects depend on it
DETAIL: type mydomainrange depends on type mydomain
HINT: Use DROP ... CASCADE to drop the dependent objects too.
drop domain mydomain cascade;
ERROR: type "mydomain" does not exist
NOTICE: drop cascades to type mydomainrange
--
-- Test domains over range types
--