Skip to content

Can DatabaseErrorInformation contain db values? #3289

Answered by weiznich
agostbiro asked this question in Q&A
Discussion options

You must be logged in to vote

We cannot grantee that any type implementing DatabaseErrorInformation will not contain database values. This trait is implementation specific, which means that any potential third party implementation can provide whatever information they want. For the implementations provided in diesel this mostly closely mirrors whatever the underlying database library provides as information about error messages. Again we do not have any control about the exact error messages emitted there, we just forward them to users. In the end it highly depends on your database system, your database connection library version (so the version of libpq, libmysqlclient or libsqlite3) and what you would expect to be c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agostbiro
Comment options

Answer selected by agostbiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants