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

Redundant warnings on WHERE decimal_column='ax'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5, 10.0, 10.1
    • 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 |
      +---------+------+-------------------------------------------------------+

        Attachments

          Activity

            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:

                Git Integration