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

Bad warning level when inserting a DATETIME value into a TIME column

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.12, 5.5.37, 10.0.11
    • Fix Version/s: 10.0.12
    • Component/s: None
    • Labels:
      None

      Description

      This SQL script:

      drop table if exists t1;
      create table t1 (a time);
      insert into t1 values (1.0e+10);
      show warnings;
      

      displays a "Warning":

      +---------+------+----------------------------------------+
      | Level   | Code | Message                                |
      +---------+------+----------------------------------------+
      | Warning | 1265 | Data truncated for column 'a' at row 1 |
      +---------+------+----------------------------------------+
      

      It should be a NOTE instead.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              bar Alexander Barkov added a comment -

              Fixing in 5.3 and 5.5 would need to much code to be back-ported from 10.0.
              Changing "Fix version" to 10.0 only.

              Show
              bar Alexander Barkov added a comment - Fixing in 5.3 and 5.5 would need to much code to be back-ported from 10.0. Changing "Fix version" to 10.0 only.
              Hide
              bar Alexander Barkov added a comment -

              Pushed into 10.0.

              Show
              bar Alexander Barkov added a comment - Pushed into 10.0.

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: