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

Wrong result of MIN(inet6) with GROUP BY

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.5
    • 10.5.0
    • Data types
    • None

    Description

      CREATE OR REPLACE TABLE t1 (id INT, a INET6) ENGINE=MyISAM;
      INSERT INTO t1 VALUES (1, 'fff::'),(1, '8888::');
      SELECT MIN(a), MAX(a) FROM t1 GROUP BY id;
      

      +--------+--------+
      | MIN(a) | MAX(a) |
      +--------+--------+
      | 8888:: | fff::  |
      +--------+--------+
      

      Looks wrong. The INET6 value '8888::' is greater than 'fff::'.

      Attachments

        Issue Links

          Activity

            bar Alexander Barkov created issue -
            bar Alexander Barkov made changes -
            Field Original Value New Value
            bar Alexander Barkov made changes -
            bar Alexander Barkov made changes -
            issue.field.resolutiondate 2019-10-14 14:32:16.0 2019-10-14 14:32:16.98
            bar Alexander Barkov made changes -
            Fix Version/s 10.5.0 [ 23709 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 100409 ] MariaDB v4 [ 156862 ]

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.