Bug report #20844

Boolean field type for Memory Layers

Added by Julien Monticolo almost 2 years ago. Updated almost 2 years ago.

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

Revision 055a1661
Added by Nyall Dawson almost 2 years ago

[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 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF