Bug report #6253
Multi attribute editing - Only one value checked results in error
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 #: | 15559 |
Description
When editing the attribute table of a vector layer with the multi attribute editing tool an array should be generated to be inserted into postgresql. This array is formatted as {1,2,3}.
If only one value is inserted, the array should be {1}. But if only one value is checked (which is not the first one in the list) the resulting array looks like this: {,3}. This is not accepted by postgresql.
The attached patch solves this problem. Please review and apply.
Associated revisions
History
#1 Updated by Andreas Neumann about 12 years ago
- Assignee set to Jürgen Fischer
#2 Updated by Jürgen Fischer about 12 years ago
- Status changed from Open to Closed
Fixed in changeset 078f5b846ce3b7740955c6c304d83ad46f386ad0.