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

No warning on CAST(9000000 AS TIME)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.12, 5.5.36, 10.0.10
    • Fix Version/s: 5.5.38, 10.0.12, 5.3.13
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: