Opened 4 years ago

Closed 3 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
Cc:

Description

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 4 years ago.
check if DB is valid

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by martinl

Attachment: vfk-check-tables.diff added

check if DB is valid

comment:1 Changed 4 years ago by Even Rouault

Looks good to me

comment:2 Changed 3 years ago by martinl

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.