Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34497

Incorrect identification of duplicate primary keys

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 11.4.2
    • N/A
    • N/A
    • None
    • ubuntu 20.04

    Description

      CREATE TABLE test (c1 VARCHAR(255), PRIMARY KEY(c1));
      INSERT INTO test(c1) VALUES ('A');
      INSERT INTO test(c1) VALUES ('a');
      --ERROR 1062 (23000): Duplicate entry 'a' for key 'test.PRIMARY'
      

      When inserting a, it will report a duplicate primary key. But there's only 'A' in the table and there's no 'a'.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Wangdada HeShan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.