-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Failed constraint checks and partial indexes should raise E_VALIDATION #5097
Comments
We don't have that fine grained error code checking. It would be great to add it if anyone has the time. Looks like the list of possible error codes is here. |
Thanks for posting, @kevinburkeshyp. I'm a repo bot-- nice to meet you! It has been 30 days since there have been any updates or new comments on this page. If this issue has been resolved, feel free to disregard the rest of this message. On the other hand, if you are still waiting on a patch, please:
Thanks so much for your help! |
What error does the adapter provide? Waterline doesn't know anything about HTTP errors (400 vs 500, etc.). |
Thanks for posting, @kevinburkeshyp. I'm a repo bot-- nice to meet you! It has been 30 days since there have been any updates or new comments on this page. If this issue has been resolved, feel free to disregard the rest of this message. On the other hand, if you are still waiting on a patch, please:
Thanks so much for your help! |
Added this to the roadmap as a feature. balderdashy/sails-postgresql@830f50e |
Thanks for posting, @kevinburkeshyp. I'm a repo bot-- nice to meet you! It has been 30 days since there have been any updates or new comments on this page. If this issue has been resolved, feel free to disregard the rest of this message. On the other hand, if you are still waiting on a patch, please:
Thanks so much for your help! |
say i have a table like this
and I try to write
-1
as the account balance - this will raise a check failure! in theory this should be a 400 E_VALIDATION instead of a 500 server error, but the latter gets raised.Similar thing happens for partial indexes - the code matches but they don't match the regex at the bottom of
adapter.js
.which says, the same driverId can't be set on two different accounts that have the processingState ACTIVE. dumb example sorry but the ones we use this for are currently proprietary.
The text was updated successfully, but these errors were encountered: