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

Inconsistent behaviors when creating PRIMARY KEYs

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.8.1, 10.5, 10.6, 10.11, 11.4, 11.8
    • 10.11, 11.4, 11.8
    • Server

    Description

      Run the following statements, in which the first CREATE TABLE is expected to fail. However, it does not.

      CREATE TABLE t1 (c1 VARCHAR(0), PRIMARY KEY (c1)); -- expected to fail
      CREATE TABLE t1 (c1 VARCHAR(0) PRIMARY KEY); -- The storage engine InnoDB can't index column `c1`
      

      Attachments

        Issue Links

          Activity

            People

              nikitamalyavin Nikita Malyavin
              John Jove John Jove
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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