Opened 14 years ago
Closed 14 years ago
#2410 closed bug (fixed)
field calculator results may violate spatialite type contraints
Reported by: | anitagraser | Owned by: | nobody |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | Version 1.5.0 |
Component: | GUI | Version: | Trunk |
Keywords: | spatialite, editing | Cc: | esseffe |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | yes |
Description
It's possible to turn editing on for spatialite layers, use e.g. field calculator or add geometries but it fails saving because spatialite provider is read-only. This is annoying and confuses users because they think it's their mistake.
Change History (5)
comment:1 by , 14 years ago
Awaiting user input: | set |
---|
comment:2 by , 14 years ago
Summary: | editing tools are being enabled even though spatialite provider is read-only → field calculator results may violate spatialite type contraints |
---|
comment:3 by , 14 years ago
Cc: | added |
---|
A few notes (tested on both linux and xp with qgis trunk and the spatialite sample dataset):
*) add a spatialite vector, open attributes properties and add a column. Save changes. If you open the attribute table the new column do not show (not even in the field calculator). You need to remove the layer and add it again to see the new column (and be able to populate it).
*) as consequence if you add spatialite layer, toggle editing, open the field calculator and try to populate a new column, qgis will fail
Could not commit changes to layer Towns Errors: SUCCESS: 1 attribute(s) added. ERROR: 8101 attribute value change(s) not applied.
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The problem is not reproducable here. Can you post the database?