Skip to content

[FEATURE] Add new data type: UNIT #861

Closed
@Yury-Fridlyand

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions