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

Hyphens inside the value of uuid datatype

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • 10.7.1
    • Data types
    • None

    Description

      It is allowed to set hyphens in groups of 2 digits or ommit them, so there are max 15 hyphens in the uuid.
      But it is also allowed to set them in a row - and it does not make much sense and is not very clear when 15 of them are accepted, while 16 is not - it is confusing.

      create table t1 (a uuid);
       
      MariaDB [test]> INSERT INTO t1 VALUES ('5796dac11a1c11--------------ecab4ef859-713e4be4');
      Query OK, 1 row affected (0.026 sec)
       
      MariaDB [test]> INSERT INTO t1 VALUES ('5796dac11a1c11---------------ecab4ef859-713e4be4');
      ERROR 1292 (22007): Incorrect uuid value: '5796dac11a1c11---------------ecab4ef859-713e4be4' for column `test`.`t1`.`a` at row 1
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              alice Alice Sherepa
              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.