Navigation Menu

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

Issue #1684: Invalid query generated using OracleDriver for filter with Option column. #2059

Merged
merged 2 commits into from Feb 13, 2020

Conversation

alexFrankfurt
Copy link
Contributor

Adds test and fixes #1684
Giving value by default and comparing with boolean like here wasn't working either. This PR implements fix for that case as well.

…tion when suplied with default value through getOrElse.
@lightbend-cla-validator
Copy link
Collaborator

Hi @alexFrankfurt,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

http://www.lightbend.com/contribute/cla

@kubukoz
Copy link

kubukoz commented Sep 11, 2019

Hi @alexFrankfurt, would you be willing to finish this? If you don't have time, let me know and I'll try to take over and bring this to completion.

import slick.jdbc.OracleProfile

class OptionBooleanTest extends AsyncTest[JdbcTestDB] {
lazy val oracleProfile = tdb.profile.asInstanceOf[OracleProfile]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change this test so that we can execute this for all databases? This is something that should work regardless of the profile that is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I've made appropriate changes.

@Alnaimi-
Copy link

Alnaimi- commented Jan 9, 2020

issue was reported 2 years ago now, and the fix was proposed 5 months ago. Can we please get this in?

@kubukoz
Copy link

kubukoz commented Jan 9, 2020

@szeiger @WellingR?

@jorgedfbranco
Copy link

Guys, any news regarding this? We just migrated from squeryl to slick only to find that Slick can't properly handle boolean values..?

Copy link
Contributor

@WellingR WellingR left a comment

Choose a reason for hiding this comment

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

I am no expert on how these queries are generated, but this looks good to me.
FYI, I have just contributed/reviewed some PRs, but I am not able to merge

@hvesalai hvesalai merged commit eecc74f into slick:master Feb 13, 2020
@hvesalai
Copy link
Member

@kubukoz thank you for the PR

@kubukoz
Copy link

kubukoz commented Feb 13, 2020

@hvesalai not my PR ;)

@alexFrankfurt
Copy link
Contributor Author

Happy to make slick better 👍

@hvesalai
Copy link
Member

So sorry guys. Credit where credit is due. Thank you @alexFrankfurt !

@nafg nafg added this to the 3.3.3 milestone Dec 20, 2021
@nafg nafg added the bug label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid query generated using OracleDriver for filter with Option column
8 participants