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

Inconsistency between string and hex warning representation when converting from string to the other types

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.3.12, 5.5.36, 10.0.8, 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
    • 10.5
    • None
    • None

    Description

      select cast('я' as int), cast('я' as time);
      show warnings;

      returns hex warning representation when converting to time/datetime,
      and string representation when converting to the other data types:

      +-------------------+--------------------+
      | cast('я' as int)  | cast('я' as time)  |
      +-------------------+--------------------+
      |                 0 | 00:00:00           |
      +-------------------+--------------------+
      1 row in set, 2 warnings (0.00 sec)
       
      +---------+------+--------------------------------------------+
      | Level   | Code | Message                                    |
      +---------+------+--------------------------------------------+
      | Warning | 1292 | Truncated incorrect INTEGER value: 'я'     |
      | Warning | 1292 | Truncated incorrect time value: '\xD1\x8F' |
      +---------+------+--------------------------------------------+
      2 rows in set (0.00 sec)

      It should be fixed to print string representation in both cases.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.