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

No warning on CAST(9000000 AS TIME)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.3.12, 5.5.36, 10.0.10
    • 5.5.38, 10.0.12, 5.3.13
    • None
    • None

    Description

      Conversion of an out-of-range number to TIME does not produce a warning:

      mysql> SELECT CAST(9000000 AS TIME);
      +-----------------------+
      | CAST(9000000 AS TIME) |
      +-----------------------+
      | 838:59:59             |
      +-----------------------+
      1 row in set (0.00 sec)

      MySQL-5.5 returns 838:59:59 with a warning, which looks correct.
      MySQL-5.6 returns NULL with a warning, which looks wrong.

      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.