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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user