Skip to content

Commit 7622a1d

Browse files
committed
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.
1 parent 29b8f8c commit 7622a1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use types::PostgresType;
1313
macro_rules! make_errors(
1414
($($code:expr => $error:ident),+) => (
1515
/// SQLSTATE error codes
16-
#[deriving(PartialEq, Eq, Clone)]
16+
#[deriving(PartialEq, Eq, Clone, Show)]
1717
#[allow(missing_doc)]
1818
pub enum PostgresSqlState {
1919
$($error,)+

0 commit comments

Comments
 (0)