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

fix: pginterval to take iso8601 strings #1612

Merged
merged 4 commits into from Nov 25, 2019

Conversation

davecramer
Copy link
Member

this is a work in progress looking for comments on how to deal with things like months > 12 should we rationalize this before sending to the backend?

@AppVeyorBot
Copy link

Build pgjdbc 1.0.527 completed (commit 3b5e3466b3 by @davecramer)

@codecov-io
Copy link

codecov-io commented Nov 20, 2019

Codecov Report

Merging #1612 into master will increase coverage by 0.06%.
The diff coverage is 78.26%.

@@             Coverage Diff              @@
##             master    #1612      +/-   ##
============================================
+ Coverage        69%   69.06%   +0.06%     
- Complexity     4010     4040      +30     
============================================
  Files           179      179              
  Lines         16664    16750      +86     
  Branches       2716     2740      +24     
============================================
+ Hits          11499    11569      +70     
- Misses         3907     3916       +9     
- Partials       1258     1265       +7

@RhodiumToad
Copy link

No particular reason to normalize interval parts; the backend just stores months,days,microseconds anyway and converts to those.

@davecramer
Copy link
Member Author

@RhodiumToad In general I'd like to be able to retrieve what we send. If we have something like 30 months when we get it back it will be different. Not sure that matters, and not sure I want to go to the trouble to make it work. Thanks for your feedback.

@AppVeyorBot
Copy link

Build pgjdbc 1.0.528 completed (commit 836a4d8647 by @davecramer)

@AppVeyorBot
Copy link

Build pgjdbc 1.0.536 completed (commit 4a6edd7e07 by @davecramer)

@AppVeyorBot
Copy link

Build pgjdbc 1.0.539 completed (commit 0aab4d03b7 by @davecramer)

@davecramer davecramer merged commit 7b45435 into pgjdbc:master Nov 25, 2019
@davecramer davecramer deleted the fixinterval branch November 25, 2019 19:38
@reibitto reibitto mentioned this pull request Dec 21, 2019
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.

None yet

4 participants