-
Notifications
You must be signed in to change notification settings - Fork 1
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
Incorrect Error Statement #5
Comments
Currently, if Prisma/DB is unable to parse a statement (due to a wrong or unsupported syntax), it will forward the query to the database directly. This is because we do not have support of the full SQL language yet. Therefore, the error thrown is by the database itself, which does not recognize the That said, better error messages are in the pipeline, so cases like this will be less confusing to the user. |
@cheziyi I think Prisma/DB no longer does this? |
It does, as long as it can't be parsed. |
Are you sure? My understanding was that whatever can't be parsed errors out, and if you need to send through you can do |
Yup, queries that can't be parsed are sent to the database directly to attempt to have as much support for DB clients as possible. |
The text was updated successfully, but these errors were encountered: