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

Bad column name for SELECT '8bit-string' when "SET NAMES binary"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.3.12, 5.5.39, 10.0.13
    • Fix Version/s: 10.0, 5.5
    • Component/s: None
    • Labels:
      None

      Description

      Run this SQL script in a UTF8 console:

      SET NAMES binary;
      SELECT 'aa','aä','äa','ää';
      

      The output is:

      +----+-----+-----+------+
      | aa | aä  | a   |      |
      +----+-----+-----+------+
      | aa | aä  | äa  | ää   |
      +----+-----+-----+------+
      

      Column names for the third and the fourth columns are wrong.

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

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

                Dates

                • Created:
                  Updated: