You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dropping a composite type with referencing the property types and names is classified correctly as error while referencing the property types only (as with functions) is not detected.
CREATE TYPE if EXISTS group_composite AS (id int, name text);
DROP TYPE if EXISTS group_composite; -- no error => correct
DROP TYPE if EXISTS group_composite (int, text); -- no error => incorrect, should be error: Error: ERROR: 42601: type modifier is not allowed for type "group_composite"
DROP TYPE if EXISTS group_composite (id int, name text); -- error => correct
To Reproduce
Create a type and drop it referencing the parameters (as with functions).
Expected behavior
The server should detect that a type can not be dropped with referenced parameters
Bug report
Describe the bug
Dropping a composite type with referencing the property types and names is classified correctly as error while referencing the property types only (as with functions) is not detected.
To Reproduce
Expected behavior
The server should detect that a type can not be dropped with referenced parameters
As specified in: https://www.postgresql.org/docs/current/sql-droptype.html
System information
The text was updated successfully, but these errors were encountered: