Skip to content

Use to_regtype($1) instead of $1::regtype in TypeInfo.fetch query #473

@CaselIT

Description

@CaselIT

Using $1::regtype will raise an error if the type does not exist. An example is if the hstore is not installed in the db.

ref sqlalchemy/sqlalchemy#8631 (comment) and sqlalchemy/sqlalchemy#8631 (comment)

cc @om26er

note: it seems to_regtype was added in 9.4 (at least the documentation of 9.3 does not mention it)

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