-
Notifications
You must be signed in to change notification settings - Fork 21
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
pass table and column to custom sql function #20
Comments
Null ordering has been implemented and released in v0.4.0. Did you run into issues with using the new option? |
@glebm I am. I'm using v0.4.0. Seems like it doesn't think there are more records, even though I know there are. I did a test by Also, it could be because I'm using dynamic queries. I'm not sure. |
What does the SQL look like with e.g. |
By the way, I don't mind allowing a proc as |
Interestingly, I had Here is the SQL for both
Let me know if I can help further. |
What database are you using? |
mysqld 5.7.19 |
I think I see a bug with that query. Just to confirm, what happens if you set |
(This seems to work, by the way.) |
Thanks, I've opened a separate issue about this bug |
(On a side note, I was not asking to add |
In trying to figure out some
NULL
sorting handling issues, I ran into #10, and in particular the suggestion to useCOALESCE
to turn a null value to a non-value.In order to allow this kind of functionality for dynamic queries, I am suggesting that the table and column name obtained from the connection be passed to the sql function. In other words, in here, a change along the lines of:
This allows me to call
COALESCE
using the resolved table name, as I don't have access to the connection in the custom sql proc.If you're open to this, I can submit a PR.
Thank you!
The text was updated successfully, but these errors were encountered: