Skip to content

Wrong parameter type for GEOMETRY columns #39

@bobozaur

Description

@bobozaur

Create a table:

CREATE TABLE my_table (geo GEOMETRY);

Prepare an insert statement:

INSERT INTO my_table VALUES (?);

The expected type for the parameter would be GEOMETRY(0), yet VARCHAR(2000000) UTF8 is returned instead. A SELECT statement returns the correct GEOMETRY type for the result set columns, though.

I understand that this might've been chosen because GEOMETRY types are constructed from strings, yet the same could be said about HASHTYPE which instead consistently returns the correct type for both result sets columns and prepared statement parameters.

I think that ideally the same behavior should be employed for GEOMETRY columns for consistency.

Tested with the Docker containers for versions 7.0.22 and 8.29.11

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