Bug report #12447
Regression in Postgres provider (master)
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Jürgen Fischer | ||
Category: | Data Provider/PostGIS | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 20613 |
Description
A recent 250eb74 (using git bisect) to master introduces a regression in the postgres provider. When adding a new feature, the schema is no longer present in the nextval function to get the new value for the primary key.
Steps to reproduce:- Add a PostGIS layer (preferably from schema != 'public').
- Enable edit mode.
- Add a feature.
- The default value for the primary key reads f.ex.
nextval('testlayer_gid_seq'::regclass)
where it used to read f.ex.nextval('data.testlayer_gid_seq'::regclass)
- As a consequence, saving the layer with the new feature fails since the sequence cannot be found.
Associated revisions
postgres provider: fix retrieval of default values from other schemes (fixes #12447)
History
#1 Updated by Jürgen Fischer over 9 years ago
- Status changed from Open to Closed
Fixed in changeset 581d7f8e70c5baab95a85308c7b07e505cae3127.