You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If I copy to clipboard features that are not yet saved to the underlying provider hence they have "Autogenerate" as their fid, then I cannot paste them as a new temporary scratch layer.
The log shows : ../src/core/qgsvectordataprovider.cpp:739 : (pushError) [0ms] Could not store attribute "GPKG_FID": Value "Autogenerate" is not a number
How to Reproduce
Add a geopackage layer and start editing
Add a feature by digitizing, its FID becomes "Autogenerate"
The resulting field fid is created as Integer64 NOT NULL UNIQUE and then features with literally the value Autogenerate are tried to be inserted. If I manually change the fid values then it obviously works just the same as if it was saved first.
gioman
added
the
Vectors
Related to general vector layer handling (not specific data formats)
label
Jan 2, 2021
Added some features to a table without saving (in a postgresql table with a sequence primary key on the id column). In the column id I have nextval('.. for the new features as I didn't get to save
Selecting those new features (nextval.. in the id) in the attribute table and trying to either paste them as a temporary stratch layer or saving them as geopackage doesn't work until I give the id a value (I did it using @row_number + 500000)
Describe the bug
If I copy to clipboard features that are not yet saved to the underlying provider hence they have "Autogenerate" as their fid, then I cannot paste them as a new temporary scratch layer.
The log shows :
../src/core/qgsvectordataprovider.cpp:739 : (pushError) [0ms] Could not store attribute "GPKG_FID": Value "Autogenerate" is not a number
How to Reproduce
QGIS and OS versions
02f5c13 on Debian
The text was updated successfully, but these errors were encountered: