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

Add binary interval parsing #237

Merged
merged 5 commits into from
Oct 15, 2021
Merged

Add binary interval parsing #237

merged 5 commits into from
Oct 15, 2021

Conversation

morris25
Copy link
Contributor

@morris25 morris25 commented Oct 8, 2021

A fix for #236. It turns out the AdjustIntervalForTypmod is handled before the result is returned however some minor Period processing was required since Dates is a bit fussy about comparing CompoundPeriods.

This fixes binary queries involving the postgres interval type.

src/parsing.jl Outdated Show resolved Hide resolved
src/parsing.jl Outdated Show resolved Hide resolved
src/parsing.jl Outdated Show resolved Hide resolved
@morris25
Copy link
Contributor Author

morris25 commented Oct 8, 2021

For the sake of everyone's sanity I'm going to ignore the format suggestions on runtests.jl.

Copy link
Collaborator

@iamed2 iamed2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! Glad this was not too hard in the end.

src/parsing.jl Outdated Show resolved Hide resolved
src/parsing.jl Outdated Show resolved Hide resolved
src/parsing.jl Outdated Show resolved Hide resolved
src/parsing.jl Outdated Show resolved Hide resolved
Co-authored-by: Eric Davies <iamed2@gmail.com>
src/parsing.jl Outdated Show resolved Hide resolved
@morris25 morris25 requested a review from iamed2 October 8, 2021 19:41
src/parsing.jl Outdated Show resolved Hide resolved
@morris25
Copy link
Contributor Author

@iamed2 Is this good to go now?

@iamed2
Copy link
Collaborator

iamed2 commented Oct 15, 2021

Yes, go ahead and merge and register!

@morris25
Copy link
Contributor Author

morris25 commented Oct 15, 2021

Yes, go ahead and merge and register!

@iamed2 I don't seem to have merge permissions. Would you mind clicking the button?

@iamed2 iamed2 merged commit 953fb6c into master Oct 15, 2021
@iamed2 iamed2 deleted the sm/interval branch October 15, 2021 19:12
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.

3 participants