-
Notifications
You must be signed in to change notification settings - Fork 558
Generate IN/NIN whereHelpers for nullable types #1083
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
Conversation
|
@stephenafamo do you need anything from me in order to merge this PR? |
|
I haven't had time to manually check it. There was also some discussion about using a potential Basically, a mix between testing it and making sure there are no breaking changes. |
|
+1 for this, would be really great to have |
@stephenafamo is there a way we can help you test it if you're short on time? |
|
Really anyone just using the branch and confirming that it works and doesn't introduce any breaking changes. |
|
I have included this into my fork and it works fine for my use case. |
|
@fdegiuli kindly fix the merge conflicts so I can merge this |
|
Done. I also updated a function name in light of the changes in the master
branch.
Thanks for the ping
…On Sat, Aug 13, 2022, 5:47 PM Stephen Afam-Osemene ***@***.***> wrote:
@fdegiuli <https://github.com/fdegiuli> kindly fix the merge conflicts so
I can merge this
—
Reply to this email directly, view it on GitHub
<#1083 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHCYILNPH2T3ABBBLG3E4LVZA62TANCNFSM5OE732SA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
@stephenafamo any hope if this can be pushed in a v4 release, kind of a blocker in a project ? |
|
I'll tag a release within the next week. |
Enables IN/NIN whereHelper function generation for nullable types addressing issue #851. Based on #910.
The generated helpers take the underlying primitive types, so that a
null.Stringcolumn would generate a function with signatureIN(slice []string) qm.QueryModI implemented it this way (instead of accepting nullable values) for a few reasons:
null.*to construct these clauses currentlyNULLin anINclause is meaningless in SQL anyway, as it does not affect the result