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

Unreadable control characters printed as is in warnings

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.1, 10.0
    • Fix Version/s: 10.1
    • Component/s: Character Sets
    • Labels:
      None

      Description

      SELECT CAST(_latin1 0x01 AS INT);
      SHOW WARNINGS;
      

      returns this warning:

      +---------+------+----------------------------------------+
      | Level   | Code | Message                                |
      +---------+------+----------------------------------------+
      | Warning | 1292 | Truncated incorrect INTEGER value: '' |
      +---------+------+----------------------------------------+
      

      Notice, the unreadable control character 0x01 is printed as is. It should be escaped.

        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:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: