Fix an ALTER TABLE test case so that it actually tests what the comment says it

is testing.  Ah, the perils of making keywords optional ...
This commit is contained in:
Tom Lane 2008-06-09 18:28:00 +00:00
parent 8374246054
commit 5862cda611
2 changed files with 3 additions and 2 deletions

View File

@ -351,7 +351,8 @@ alter table atacc3 inherit atacc2;
ERROR: child table is missing column "test2"
-- fail due to mismatched data type
alter table atacc3 add test2 bool;
alter table atacc3 add inherit atacc2;
alter table atacc3 inherit atacc2;
ERROR: child table "atacc3" has different type for column "test2"
alter table atacc3 drop test2;
-- succeed
alter table atacc3 add test2 int;

View File

@ -373,7 +373,7 @@ alter table atacc3 rename test2 to testx;
alter table atacc3 inherit atacc2;
-- fail due to mismatched data type
alter table atacc3 add test2 bool;
alter table atacc3 add inherit atacc2;
alter table atacc3 inherit atacc2;
alter table atacc3 drop test2;
-- succeed
alter table atacc3 add test2 int;