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

OPAL-2983: JDBC datasource for mysql/mariadb cannot store datetime values before 1970-1-1 #3231

Open
ymarcon opened this issue Nov 27, 2017 · 2 comments
Labels
bug pinned Stale bot ignored

Comments

@ymarcon
Copy link
Member

ymarcon commented Nov 27, 2017

Jira issue originally created by user @ymarcon:

In mysql/mariadb values of SQL Timestamp column must be greater than the epoch time.
Then for values in Opal of type datetime, this is a constraint (for birth dates for instance).

@ymarcon
Copy link
Member Author

ymarcon commented Nov 27, 2017

Comment created by @ymarcon:

DATETIME type should be used in place of TIMESTAMP:

https://dev.mysql.com/doc/refman/5.7/en/datetime.html

{quote}The DATETIME type is used for values that contain both date and time parts. MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD HH:MM:SS' format. The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'.

The TIMESTAMP data type is used for values that contain both date and time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC.{quote}

@ymarcon
Copy link
Member Author

ymarcon commented Nov 28, 2017

Comment created by @ymarcon:

Should be ok with postgresql:
https://www.postgresql.org/docs/9.1/static/datatype-datetime.html

@ymarcon ymarcon added the bug label May 24, 2018
@ymarcon ymarcon added this to the 2.11.0 milestone May 24, 2018
@ymarcon ymarcon modified the milestones: 2.11.0, 2.12.0 Jun 29, 2018
@stale stale bot added the wontfix label Aug 28, 2018
@ymarcon ymarcon removed the wontfix label Sep 3, 2018
@obiba obiba deleted a comment from stale bot Sep 3, 2018
@ymarcon ymarcon added the pinned Stale bot ignored label Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pinned Stale bot ignored
Projects
None yet
Development

No branches or pull requests

1 participant