Skip to content

[Bug] Prevent generating duplicate function #407

@kAvEh--

Description

@kAvEh--

In case of table with two indexes on a column, xo will generate two identical function which cause an error.
This is a sample Postgres table that produce two identical function XoTestByID

create table xo_test
(
    id    SERIAL PRIMARY KEY
);

create unique index on xo_test (id);

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