Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add new data type: UNIT #861

Closed
Tracked by #722
Yury-Fridlyand opened this issue Sep 28, 2022 · 1 comment
Closed
Tracked by #722

[FEATURE] Add new data type: UNIT #861

Yury-Fridlyand opened this issue Sep 28, 2022 · 1 comment
Labels
enhancement New feature or request SQL

Comments

@Yury-Fridlyand
Copy link
Collaborator

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

@Yury-Fridlyand
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SQL
Projects
None yet
Development

No branches or pull requests

2 participants