#5520 closed defect (fixed)
GPKG: Quote field names
Reported by: | Robert Coup | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | normal | Keywords: | gpkg geopackage |
Cc: | ryanl, Kyle Shannon |
Description
Currently no escaping happens on column names in the Geopackage driver, which means field names with spaces/dashes/etc will cause SQL errors.
Attached patch quotes column names.
Attachments (2)
Change History (8)
by , 10 years ago
Attachment: | 5520.1.patch added |
---|
comment:1 by , 10 years ago
Cc: | added |
---|
comment:4 by , 9 years ago
Cc: | added |
---|
comment:5 by , 9 years ago
It looks like there was a little refactoring in between the trunk and 1.11 in gpkg. I've attempted to catch up on escaping column names in the patch, but have to add tests to ensure I don't break it. I will test on 1.11 tonight, and attach tests then.
Note:
See TracTickets
for help on using tickets.
Patch v1