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

COALESCE() incorrectly treats NULL values from UUID columns

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 11.8.9
    • N/A
    • Data types
    • None
    • Not for ES Release Notes

    Description

      COALESCE() returns NULL instead of the next non-NULL argument when a UUID column contains NULL.

      CREATE TABLE t1 ( a UUID);
      INSERT INTO t1 VALUES (NULL);
       
      SELECT COALESCE(a, 'test') FROM t1;
       
      -- NULL
      

      NULL

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tamine Tarik AMINE
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.