Skip to content

Error while trying to use hex160 as primary key or with unique flag #1

@0xMimir

Description

@0xMimir

When trying to create following table:

create table example(
    id uuid primary key default uuid_generate_v4(),
    account hex160 not null unique,
    username varchar(50) not null unique
)

Or

create table example(
    id hex160 primary key,
    username varchar(50) not null unique
)

I get following error

ERROR: data type hex160 has no default operator class for access method "btree"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions