Skip to content

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

Closed
ejball wants to merge 1 commit into
mysql-net:masterfrom
ejball:datetimekind
Closed

ejball wants to merge 1 commit into
mysql-net:masterfrom
ejball:datetimekind

Conversation

@ejball

@ejball ejball commented Apr 18, 2018

Copy link
Copy Markdown
Contributor

No description provided.

@bgrainger

Copy link
Copy Markdown
Member

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

@bgrainger bgrainger closed this Apr 18, 2018
@bgrainger

Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants