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

UNIX_TIMESTAMP(CURRENT_TIME()) return null ?!?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.4, 10.5, 10.6, 10.5.12
    • Fix Version/s: 10.4, 10.5, 10.6
    • Component/s: Data types
    • Labels:
      None
    • Environment:
      Debian 10.10

      Description

      Hello,
      It seems that UNIX_TIMESTAMP(CURRENT_TIME()) returns null, but not UNIX_TIMESTAMP(CURRENT_TIMESTAMP())
      Is it wanted?
      Or is it a bug?
      Thank you for your reply

      – --------------------------------------
      SELECT
      UNIX_TIMESTAMP(CURRENT_TIME()),
      UNIX_TIMESTAMP(CURRENT_TIMESTAMP()),
      UNIX_TIMESTAMP(NOW())
      – --------------------------------------
      ;

        Attachments

          Activity

            People

            Assignee:
            bar Alexander Barkov
            Reporter:
            c.devel Christophe DEVEL
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration