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

LP:740173 - 5.1-micro reports incorrect Length metadata for TIME expressions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Not repeatable with mysql-5.1 . 5.1-micro reports that the Length of a TIME column is 16 characters:

      $ mysql --column-t -e "SELECT CAST('01:01:01' AS TIME)" -uroot --protocol=tcp --port=3306
      Field 1: `CAST('01:01:01' AS TIME)`
      Catalog: `def`
      Database: ``
      Table: ``
      Org_table: ``
      Type: TIME
      Collation: binary (63)
      Length: 16
      Max_length: 8
      Decimals: 0
      Flags: BINARY

      --------------------------

      CAST('01:01:01' AS TIME)

      --------------------------

      01:01:01

      --------------------------

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 740173

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 740173

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: