Details

    • Type: Bug
    • Status: Closed
    • 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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              bar Alexander Barkov added a comment -

              Pushed into 5.3 and 5.5

              Show
              bar Alexander Barkov added a comment - Pushed into 5.3 and 5.5

                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: