Open uclaros opened 4 years ago
So you're saying that the fid validation kicks in when pasting instead of letting it pass, updating the fids and then check?
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.
Also encountered this today. QGIS 3.16.4.
id
column). In the column id
I have nextval('..
for the new features as I didn't get to save@row_number + 500000
)Still true on QGIS 3.22.3.
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 02f5c13ea0 on Debian