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

Use DateTimeKind for all returned dates and date/times. #484

Closed
wants to merge 1 commit into from

Conversation

ejball
Copy link
Contributor

@ejball ejball commented Apr 18, 2018

No description provided.

@bgrainger
Copy link
Member

Cherry-picked these changes in 4460be8 (and added a fix for MariaDB).

@bgrainger bgrainger closed this Apr 18, 2018
@bgrainger
Copy link
Member

From MariaDB docs:

Note: When you convert a temporal value to a value with a smaller precision, it will be truncated, not rounded. This is done to guarantee that the date part is not changed. For example:
SELECT CAST('2009-12-31 23:59:59.998877' as DATETIME(3));
-> 2009-12-31 23:59:59.998

@bgrainger
Copy link
Member

Fixed in 0.40.1.

@ejball ejball deleted the datetimekind branch May 17, 2018 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants