Skip to content

[FEATURE] Add new data type: UNIT #861

Closed

Description

@Yury-Fridlyand

Is your feature request related to a problem?

TIMESTAMPADD and TIMESTAMPDIFF functions in mysql have unit as an argument. See also EXTRACT function.

What solution would you like?

A new data type: UNIT:

  1. Not storable and not returnable to user.
  2. Not comparable and not castable.
  3. Can store multiple units inside, see EXTRACT.
  4. For use in few datetime functions only.

What alternatives have you considered?

Use a string instead.

Do you have any additional context?

#722
#855

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQLenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions