-
Notifications
You must be signed in to change notification settings - Fork 361
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
Regression with Option[Record]
results in 1.0.0-RC6
#2144
Comments
Thanks for the report. I believe this is a long running issue in doobie and should be fixed by #2136. See the changes I made for the test scenario "Read should read correct columns for instances with Option (None)" in ReadSuite.scala. I believe in RC5 the behaviour works for your case but not in the general case. I'll add more tests to verify that left joining a table with not-null and null columns are handled correctly. |
Up until 1.0.0-RC5 I didn't notice issues with it. But I also haven't used that feature prolifically. |
If it helps I did solve this in |
@Jasper-M We've added a test case for this to verify your scenario so this shouldn't be an issue in the upcoming RC7. If you got a bit of time, give the snapshot a try and let us know if you see anything fishy #2104 (comment). Thanks! |
I experienced a regression in the latest 1.0.0-RC6. I don't yet have a fully tested self contained example though.
But I think it boils down to this code:
With these records in the DB:
I used to get
(Foo(1, "abc"), Some(Bar(1, None)))
as the result of that query, and now I get(Foo(1, "abc"), None)
.The text was updated successfully, but these errors were encountered: