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:
Mike Dilger 2014-06-21 10:07:43 +12:00
parent 29b8f8c1d5
commit 7622a1d395

View File

@ -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,)+