@@ -10,10 +10,10 @@ use time::Timespec;
1010
1111use PostgresResult ;
1212use error:: { PgWrongType , PgStreamError , PgWasNull , PgBadData } ;
13- // use types::array::{Array, ArrayBase, DimensionInfo};
13+ use types:: array:: { Array , ArrayBase , DimensionInfo } ;
1414use types:: range:: { RangeBound , Inclusive , Exclusive , Range } ;
1515
16- // pub mod array;
16+ pub mod array;
1717pub mod range;
1818
1919/// A Postgres OID
@@ -107,7 +107,6 @@ macro_rules! make_postgres_type(
107107 }
108108 }
109109
110- /*
111110 fn member_type( & self ) -> PostgresType {
112111 match * self {
113112 $(
@@ -116,7 +115,6 @@ macro_rules! make_postgres_type(
116115 _ => unreachable!( )
117116 }
118117 }
119- */
120118 }
121119 )
122120)
@@ -425,7 +423,6 @@ macro_rules! from_array_impl(
425423 )
426424)
427425
428- /*
429426from_array_impl ! ( PgBoolArray , bool )
430427from_array_impl ! ( PgByteAArray , Vec <u8 >)
431428from_array_impl ! ( PgCharArray , i8 )
@@ -440,7 +437,6 @@ from_array_impl!(PgFloat8Array, f64)
440437from_array_impl ! ( PgInt4RangeArray , Range <i32 >)
441438from_array_impl ! ( PgTsRangeArray | PgTstzRangeArray , Range <Timespec >)
442439from_array_impl ! ( PgInt8RangeArray , Range <i64 >)
443- */
444440
445441impl FromSql for Option < HashMap < String , Option < String > > > {
446442 fn from_sql ( ty : & PostgresType , raw : & Option < Vec < u8 > > )
@@ -730,7 +726,6 @@ macro_rules! to_array_impl(
730726 )
731727)
732728
733- /*
734729to_array_impl ! ( PgBoolArray , bool )
735730to_array_impl ! ( PgByteAArray , Vec <u8 >)
736731to_array_impl ! ( PgCharArray , i8 )
@@ -745,7 +740,6 @@ to_array_impl!(PgInt4RangeArray, Range<i32>)
745740to_array_impl ! ( PgTsRangeArray | PgTstzRangeArray , Range <Timespec >)
746741to_array_impl ! ( PgInt8RangeArray , Range <i64 >)
747742to_array_impl ! ( PgJsonArray , Json )
748- */
749743
750744impl ToSql for HashMap < String , Option < String > > {
751745 fn to_sql ( & self , ty : & PostgresType ) -> PostgresResult < ( Format , Option < Vec < u8 > > ) > {
0 commit comments