Opened 7 years ago

Closed 7 years ago

#6511 closed defect (fixed)

VFK: recreate DB automatically when it's outdated

Reported by: martinl Owned by: warmerdam
Priority: normal Milestone: 2.0.3
Component: OGR_SF Version: unspecified
Severity: normal Keywords: VFK


The structure of underlaying DB changed across GDAL versions (mainly vfk_tables table). The patch bellow checks if vfk_tables has certain number of columns, if the condition is not satisfied than the DB is deleted and created from scratch. Currently the VFK driver fails with invalid SQL command.

I would like to backport this patch attachment:vfk-check-tables.diff to the both branches 2.0 and 2.1 if no objections.

Attachments (1)

vfk-check-tables.diff (2.9 KB ) - added by martinl 7 years ago.
check if DB is valid

Download all attachments as: .zip

Change History (3)

by martinl, 7 years ago

Attachment: vfk-check-tables.diff added

check if DB is valid

comment:1 by Even Rouault, 7 years ago

Looks good to me

comment:2 by martinl, 7 years ago

Resolution: fixed
Status: newclosed

Backported to 2.1 (r34258), 2.0 (r34259), 1.11 (r34261). Closing.

Note: See TracTickets for help on using tickets.