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

fixing "TIMESTAMP WITH TIMEZONE" typo #534

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

michludw
Copy link
Contributor

fixing a typo in the doobie timezoned time mapping;
there was TIMEZONE, it should be TIME ZONE

extending Coalesce test to cover this

@milessabin milessabin self-requested a review December 14, 2023 13:09
@milessabin milessabin self-assigned this Dec 14, 2023
@milessabin milessabin added the bug Something isn't working label Dec 14, 2023
@milessabin
Copy link
Member

Well spotted, and the fix looks good.

I'm not completely sure I understand why this is the right test to add to to exercise the fix though ... wouldn't it be better suited to SqlMovieMapping/Suite (which tests a range of custom scalars and PG data types)?

Copy link
Member

@milessabin milessabin left a comment

Choose a reason for hiding this comment

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

Modulo the comments about the placing of the test ... LGTM!

@michludw
Copy link
Contributor Author

Hi, I was initially thinking about adding the test to the MovieSuite, but struggled to make it fail - it would require writing the query resulting in UNION (with date-time attribute skipped in one of the queries) if I get it right.
I will try to move the tests there...

@milessabin
Copy link
Member

That's good enough for me for now. Thanks again!

We probably need to revisit the structure of some of these tests.

@milessabin milessabin merged commit 939f0cf into typelevel:main Dec 14, 2023
10 checks passed
@michludw michludw deleted the timestampz-doobie-mapping branch December 14, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants