Skip to content

[Bug]: enum type:Enum types column are not supported as primary key in pessimistic mode. #11352

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):0ef31f1816a5f082efdfc49ab0c94ebda743eaa9
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

image

Steps to Reproduce

drop table if exists pri01;
create table pri01 (col1 enum('qy4iujd3wi4fu4h3f', '323242r34df432432', '32e3ewfdewrew') primary key);
show create table pri01;
insert into pri01 values ('qy4iujd3wi4fu4h3f');
insert into pri01 values ('qy4iujd3wi4fu4h3f');
insert into pri01 (col1) values ('323242r34df432432');
insert into pri01 (col1) values (null);
select * from pri01;

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s1
    on Aug 21, 2023
  2. added this to the 1.0.0 milestone on Aug 21, 2023
  3. modified the milestones: 1.0.0, 1.1.0 on Aug 23, 2023
  4. Ariznawlll commented on Sep 1, 2023

    @Ariznawlll
    CollaboratorAuthor
    image

    Verified!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions