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

The last character is truncated when TIME_FORMAT function in the subquery

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1, 10.5.9, 10.2, 10.3, 10.4, 10.5
    • None
    • None

    Description

      Query

      select time_format(timediff('15:00:08', '15:01:08'), '%im %ss') as d
      

      Returns -01m 00s as expected.
      But inside the subquery, the last character is truncated.

      select * from (
          select time_format(timediff('15:00:08', '15:01:08'), '%im %ss') as d
      ) t
      

      Returns -01m 00

      Attachments

        Activity

          People

            Unassigned Unassigned
            rodion Rodion
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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