Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-297

CHARACTER_LENGTH(datetime) returns wrong length

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0.4
    • PrimProc
    • None
    • Centos 6.5
    • 2016-19

    Description

      A date time returns a string similar to "1997-01-01 00:00:00", which has 19 characters, yet the function CHARACTER_LENGTH when passed a date-time object returns 7 fewer. This is because of the following specific code in the function:

      //adjust for microseconds not counted
      return (int64_t)date.size() - 7;

      Not sure why this is there as microseconds have nothing to do with it.

      Attachments

        Issue Links

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              David.Hall David Hall (Inactive)
              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.