Opened 13 years ago
Closed 13 years ago
#3429 closed bug (invalid)
Can't chose edit widget "Enumeration" for empty postgres tables
Reported by: | anitagraser | Owned by: | nobody |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.7.0 |
Component: | Digitising | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
It's not possible to chose an edit widget of type "Enumeration" as long as the underlying table is empty.
You can test using:
CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple'); CREATE TABLE teste ( rain rainbow, the_geom geometry );
When one line is added, everything works as expected.
According to user cremat0rio on the related forum topic (http://forum.qgis.org/viewtopic.php?f=2&t=7834) it's possible to use the following line to populate the enum widget:
SELECT enum_range(null::rainbow);
Note:
See TracTickets
for help on using tickets.
already fixed in r15048.