Bug report #12996
Regression - Wrong default values on feature attributes edit form
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | Jürgen Fischer | ||
Category: | Data Provider/PostGIS | ||
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 #: | 21074 |
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
Associated revisions
postgres provider: fix indexing of default values (fixes #12996)
postgres provider: fix indexing of default values (fixes #12996; folloup 61f39d6f)
postgres provider: fix indexing of default values (fixes #12996; folloup 61f39d6f)
(cherry picked from commit b1dac74f2baa17eed89f6652e0d3c1653d8483e9)
History
#1 Updated by Jürgen Fischer over 9 years ago
- Assignee set to Jürgen Fischer
- Category changed from Forms to Data Provider/PostGIS
#2 Updated by Jürgen Fischer over 9 years ago
- Status changed from Open to Closed
Fixed in changeset 61f39d6ff3586d205b98d30ef80f84ed13e07c66.