Skip to content

datetime: sync datetime range with Tarantool #192

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

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

oleg-jukovec
Copy link
Collaborator

@oleg-jukovec oleg-jukovec commented Jun 30, 2022

The patch adds check for supported Datetime values. The supported range
comes from Tarantool implementation [1] and c-dt library [2].

  1. https://github.com/tarantool/tarantool/blob/a99ccce5f517d2a04670289d3d09a8cc2f5916f9/src/lib/core/datetime.h#L44-L61
  2. https://github.com/tarantool/c-dt/blob/e6214325fe8d4336464ebae859ac2b456fd22b77/API.pod#introduction

I didn't forget about (remove if it is not applicable):

I didn't add an entry to CHANGELOG.md because there hasn't been a release since datetime support. But I can add if necessary.

Related issues:

Closes #191

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-191-fix-datetime-range branch 2 times, most recently from f4c64a0 to 0810763 Compare June 30, 2022 12:19
@oleg-jukovec oleg-jukovec marked this pull request as ready for review June 30, 2022 12:28
@oleg-jukovec oleg-jukovec requested review from AnaNek, ligurio and vr009 June 30, 2022 12:28
@oleg-jukovec
Copy link
Collaborator Author

oleg-jukovec commented Jun 30, 2022

You could to build a Tarantool from the branch to play with tests:

https://github.com/tsafin/tarantool/tree/tsafin/gh-6723-mp-unpack-datetime

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-191-fix-datetime-range branch from 0810763 to acdc47c Compare June 30, 2022 13:13
Copy link
Member

@ligurio ligurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oleg, thanks for a quick fix!
LGTM (after fixing test samples)

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-191-fix-datetime-range branch from acdc47c to 9765cd4 Compare July 1, 2022 10:39
@oleg-jukovec oleg-jukovec merged commit 9b0ec8a into master Jul 4, 2022
@oleg-jukovec oleg-jukovec deleted the oleg-jukovec/gh-191-fix-datetime-range branch July 4, 2022 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid range of supported datetime values in test
3 participants