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(
|
macro_rules! make_errors(
|
||||||
($($code:expr => $error:ident),+) => (
|
($($code:expr => $error:ident),+) => (
|
||||||
/// SQLSTATE error codes
|
/// SQLSTATE error codes
|
||||||
#[deriving(PartialEq, Eq, Clone)]
|
#[deriving(PartialEq, Eq, Clone, Show)]
|
||||||
#[allow(missing_doc)]
|
#[allow(missing_doc)]
|
||||||
pub enum PostgresSqlState {
|
pub enum PostgresSqlState {
|
||||||
$($error,)+
|
$($error,)+
|
||||||
|
Loading…
Reference in New Issue
Block a user