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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 5.3.12, 5.5.37, 10.0.11
    • 10.0.12
    • None
    • 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.

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

                Git Integration

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