-
Notifications
You must be signed in to change notification settings - Fork 558
Generates IN/NIN whereHelpers for nullable types #910
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
I think that this is the reason these don't exist in the first place. The "right" answer is a little bit hard to find. Either way you're going to end up with conversions at some point. And it's also not clear that the code here is what we want because of the trap of feeding a If you go the way of only being able to provide ints, then you limit the ability to create a simple list of these with something like: Of course that comes with a potential trap of generating |
My gut feeling is that it's probably okay for this to not be supported. Given that passing a NULL to a
Not accepting null types would handle this. Also,
This is a little annoying, but the |
|
This will require some rebasing (bindata has been removed and there are changes in the same area of the code). I'm still largely undecided on it and lacking compelling arguments one way or the other I'm not sure what we should be doing here. I think the biggest obstacle to overcome in saying we should just accept primitives like Food for thought. |
Yeah, I mentioned it above but I imagine something like this would be fairly safe and straightforward, given that primitive types aren't likely to change much: |
|
Kindy reopen this PR to master, it was mistakenly closed when the dev branch was deleted. |
Enables IN/NIN whereHelper function generation for nullable types addressing issue #851. While this implements the pattern established by the other functions, I would find it more convenient to pass regular strings or ints for the IN/NIN tests. Thoughts?