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

Redundant warnings on WHERE decimal_column='ax'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1, 10.0, 5.5
    • Fix Version/s: 10.1.8
    • Component/s: Optimizer
    • Labels:
      None

      Description

      This script

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a DECIMAL, KEY(a)) ENGINE=MyISAM;
      INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
      EXPLAIN SELECT * FROM t1 WHERE a='ax' ORDER BY a;
      SHOW WARNINGS;
      

      returns

      +---------+------+-------------------------------------------------------+
      | Level   | Code | Message                                               |
      +---------+------+-------------------------------------------------------+
      | Warning | 1366 | Incorrect decimal value: 'ax' for column 'a' at row 1 |
      | Warning | 1366 | Incorrect decimal value: 'ax' for column 'a' at row 1 |
      +---------+------+-------------------------------------------------------+
      

        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:
                  Resolved: