Bug report #20844
Boolean field type for Memory Layers
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Data Provider | ||
Affected QGIS version: | 3.4.2 | Regression?: | No |
Operating System: | Ubuntu 18.04 bionic | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 28663 |
Description
If you have a PostgreSQL table (with geom type or not) :
CREATE TABLE public.t_bool( id INTEGER CONSTRAINT t_bool_pkey PRIMARY KEY, fld BOOLEAN ); INSERT INTO public.t_bool (id, fld) VALUES (1, True), (2, False), (3, False), (4, True);
and try to paste it as a memory layer, QGIS display an error message :
Can't create the field fld (bool,bool)
Moreover, when you create an empty memory layer, you can't add a boolean field type.
Associated revisions
[FEATURE] Boolean field support for memory layers
Adds support for boolean field types to memory layers
Fixes #20844
History
#1 Updated by Nyall Dawson almost 6 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|055a166136f29972571944bc741fbc68af42b4ea.