Opened 10 years ago
Closed 10 years ago
#5393 closed defect (fixed)
PKGK driver crashes due to inconsistent metadata
Reported by: | Jukka Rahkonen | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | pramsey |
Description
To repeat: 1) Make a GPKG database with GDAL
2) Rename a spatial table with SQLite3 command tool
sqlite> alter table test rename to test2;
3) Try ogrinfo
ogrinfo rename_test.gpkg ERROR 1: (null) INFO: Open of `rename_test.gpkg' using driver `GPKG' successful.
At least for me on Windows 7, 64-bit ogr2ogr will next crash. PKGK driver should be more robust and handle the case of inconsistent metadata without crash.
Another question is if GPKG could be made to create SQLite databases which support safe renaming of tables. It may be difficult because it seems that SQLite triggers cannot be made to listen to "ALTER TABLE" commands http://www.sqlite.org/lang_createtrigger.html.
Note:
See TracTickets
for help on using tickets.
trunk r27082 "GPKG: fix crash if table has been renamed (#5393)"