@@ -357,6 +357,7 @@ make_errors!(
357357)
358358
359359/// Reasons a new Postgres connection could fail
360+ #[ deriving( Clone , PartialEq , Eq ) ]
360361pub enum PostgresConnectError {
361362 /// The provided URL could not be parsed
362363 InvalidUrl ( String ) ,
@@ -408,6 +409,7 @@ impl fmt::Show for PostgresConnectError {
408409}
409410
410411/// Represents the position of an error in a query
412+ #[ deriving( Clone , PartialEq , Eq ) ]
411413pub enum PostgresErrorPosition {
412414 /// A position in the original query
413415 Position ( uint ) ,
@@ -421,6 +423,7 @@ pub enum PostgresErrorPosition {
421423}
422424
423425/// Encapsulates a Postgres error or notice.
426+ #[ deriving( Clone , PartialEq , Eq ) ]
424427pub struct PostgresDbError {
425428 /// The field contents are ERROR, FATAL, or PANIC (in an error message),
426429 /// or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a
@@ -515,6 +518,7 @@ impl fmt::Show for PostgresDbError {
515518}
516519
517520/// An error encountered when communicating with the Postgres server
521+ #[ deriving( Clone , PartialEq , Eq ) ]
518522pub enum PostgresError {
519523 /// An error reported by the Postgres server
520524 PgDbError ( PostgresDbError ) ,
0 commit comments