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

Wrong result of MIN(inet6) with GROUP BY

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.5
    • Fix Version/s: 10.5.0
    • Component/s: Data types
    • Labels:
      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

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: