1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-25 12:03:53 +03:00

Make the world at least somewhat safe for zero-column tables, and

remove the special case in ALTER DROP COLUMN to prohibit dropping a
table's last column.
This commit is contained in:
Tom Lane
2002-09-28 20:00:19 +00:00
parent 23616b47d5
commit 6d0d15c451
6 changed files with 64 additions and 81 deletions

View File

@@ -939,11 +939,9 @@ drop table test2;
alter table atacc1 drop c;
alter table atacc1 drop d;
alter table atacc1 drop b;
ERROR: ALTER TABLE: Cannot drop last column from table "atacc1"
select * from atacc1;
b
----
21
--
(1 row)
drop table atacc1;