-
Notifications
You must be signed in to change notification settings - Fork 262
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
Error: "Could not infer helper mode for keyword" isn't helpful #493
Comments
I've had similar issues. Whenever I try to build a query and ends up being invalid, all I get is the Postgres error saying "invalid syntax near SELECT" or so which is often not enough to point to the error directly. It would be useful to get the full string that was sent to the DB also in the error case. |
@dylanplural I've got a POC to improve these things that I'm toying around with, but time is unfortunately quite limited for me currently :-( @ChristophP |
Great, that does help me. Thank you :-) |
Oh it's event right there in the docs. https://github.com/porsager/postgres#error-handling How could I miss that 🤦 ? Anyway, thanks |
I'm doing some fairly complicated query building with lots of nesting and I hit this error.
It's almost impossible to debug as it doesn't log out any useful information about which parameter triggered the error message.
I believe this error should include some more helpful information such as:
The text was updated successfully, but these errors were encountered: