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

Redundant warnings in LEFT(string,string)

    Details

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

      Description

      mysql>  select left('a','ca'); show warnings;
      +----------------+
      | left('a','ca') |
      +----------------+
      |                |
      +----------------+
      1 row in set, 2 warnings (0.00 sec)
      
      +---------+------+-----------------------------------------+
      | Level   | Code | Message                                 |
      +---------+------+-----------------------------------------+
      | Warning | 1292 | Truncated incorrect INTEGER value: 'ca' |
      | Warning | 1292 | Truncated incorrect INTEGER value: 'ca' |
      +---------+------+-----------------------------------------+
      2 rows in set (0.00 sec)
      

      Two warnings look redundant. One warning should be enough.

        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: