Skip to content

Add support for Pg/Cockroach user defined enumerated types #5

@mcadecio

Description

@mcadecio

I would like to use my user-defined enum type. The enum types is as follows:

CREATE TYPE bug_status AS ENUM ('new', 'open', 'closed');

CREATE TABLE bug (
    id serial,
    description text,
    status bug_status
);

Current error:
ERROR|0521-10:00:22 897|vert.x-eventloop-thread-3|RestApiVerticle|Failed to create router:
java.lang.IllegalArgumentException: No enum constant com.dercio.database_proxy.postgres.type.PgType.USER-DEFINED

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions