Show trait for SQLSTATEs:
Useful for, if nothing else, debugging to determine which SQLSTATE occurred w/o comparing against a hundred or so possible states, nor loosely interpreting the message.
This commit is contained in:
parent
29b8f8c1d5
commit
7622a1d395
@ -13,7 +13,7 @@ use types::PostgresType;
|
||||
macro_rules! make_errors(
|
||||
($($code:expr => $error:ident),+) => (
|
||||
/// SQLSTATE error codes
|
||||
#[deriving(PartialEq, Eq, Clone)]
|
||||
#[deriving(PartialEq, Eq, Clone, Show)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum PostgresSqlState {
|
||||
$($error,)+
|
||||
|
Loading…
Reference in New Issue
Block a user