Bug report #12995
Regression - Wrong default values on feature attributes edit form
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Forms | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Win 7 | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21073 |
Description
QGIS 2.9 have a problem with edit form default values when you load table from postgres. QGIS recognize correctly data definition in propriety widget but not in feature attributes edit form.
Steps to reproduce:
1) create table in postgres like this :
CREATE TABLE public.t_sdaer_entree_champ
(
id serial primary key,
the_geom geometry(Point,2154),
source_releve character varying(50) DEFAULT 'EDENN'::character varying,
ddate date DEFAULT now(),
duser character varying(255),
commentaire text,
source_donnee character varying(50) DEFAULT 'ortho IGN 2012'::character varying
)
2) load table in QGIS
3) edit table and add new feature
Problem:
Default box for fields are not correctly reported:
‘source_releve’ default value is not reported
‘ddate’ use ‘source_releve’ default value …
(see attached picture)
It's a regression because QGIS 2.8 is not affected.
Windows 7 64bit desktop
Postgres 9.4 on Windows 7
Related issues
History
#1 Updated by Antoine EDENN over 9 years ago
- Status changed from Open to Closed
duplicated with #12996