Edit Form shows and saves raw default-values from geopackage, spatialite or sqlite #33383
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Describe the bug
QGIS shows default values from sqlite tables as string in the edit-form in case of creating a new row. After save, the raw default values are stored in the table.
QGIS-form with new feature and 'wrong' default-values. Feature from sql-insert with id 1 in background.
QGIS-table after save_ shown with pointless default-values.
How to Reproduce
Post on gis.stackexchange
QGIS and OS versions
Tried Solutions
InvalidateLayerStatistics();
andUpdateLayerStatistics();
does not help.Additional context
Easiest workaround: Set the default value as well in the field widget. Layer Properties -> Attributes Forms -> field -> Default Value
now()
maybe relevant commit 0ae610c
The text was updated successfully, but these errors were encountered: