Skip to content

Column data type detection should be case insensitive #191

@ConPac

Description

@ConPac

Hi,

Column data type detection should be case insensitive, given that SQLite follows SQL standards where identifiers are case insensitive when not quoted, which is the case for column data type definition.

Using v4.2.4, a feature table defined as create table feature (id integer not null, geometry geometry, constraint primary key(id)) is not loaded and could emit this error messages:
Unsupported column data type integer
Unsupported column data type geometry

This kind of errors could be avoided modifying GeoPackageDataType.fromName function (and similar GeometryType.fromName function) like this:
function fromName(type) { return GeoPackageDataType[type.toUpperCase()]; }

Thanks in advance,
Paco.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions