Repository navigation
Make timestamp infinity conversion the default - #4035
Merged
Merged
Conversation
Also allow default(DateTime) to be written as timestamptz although it's Unspecified. Closes npgsql#4034 Closes npgsql#4032
NinoFloris
approved these changes
Oct 13, 2021
| readonly bool _convertInfinityDateTime; | ||
| readonly BclDateHandler _bclHandler; | ||
|
|
||
| const string InfinityExceptionMessage = "Can't convert infinite timestamp values to DateTime"; |
Member
There was a problem hiding this comment.
At this point you may as well make it a throw helper 😄
Member
Author
There was a problem hiding this comment.
Yeah I know... We could even go fancy with a resx and whatnot... But let's think about it later (if at all 🤣).
| readonly BclTimestampTzHandler _bclHandler; | ||
| readonly bool _convertInfinityDateTime; | ||
|
|
||
| const string InfinityExceptionMessage = "Can't convert infinite timestamp values to DateTime"; |
vonzshik
approved these changes
Oct 13, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also allow default(DateTime) to be written as timestamptz although it's Unspecified.
Closes #4034
Closes #4032