11use fallible_iterator:: FallibleIterator ;
2- use postgres:: types:: { Type , Kind , ToSql , FromSql , IsNull , SessionInfo } ;
2+ use postgres:: types:: { Type , Kind , ToSql , FromSql , IsNull } ;
33use postgres_protocol:: types;
44use postgres_protocol;
55use std:: error:: Error ;
@@ -9,7 +9,7 @@ use {Array, Dimension};
99impl < T > FromSql for Array < T >
1010 where T : FromSql
1111{
12- fn from_sql ( ty : & Type , raw : & [ u8 ] , info : & SessionInfo ) -> Result < Array < T > , Box < Error + Sync + Send > > {
12+ fn from_sql ( ty : & Type , raw : & [ u8 ] ) -> Result < Array < T > , Box < Error + Sync + Send > > {
1313 let element_type = match * ty. kind ( ) {
1414 Kind :: Array ( ref ty) => ty,
1515 _ => unreachable ! ( ) ,
@@ -24,7 +24,7 @@ impl<T> FromSql for Array<T>
2424 . collect ( ) ) ;
2525
2626 let elements = try!( array. values ( )
27- . and_then ( |v| FromSql :: from_sql_nullable ( element_type, v, info ) )
27+ . and_then ( |v| FromSql :: from_sql_nullable ( element_type, v) )
2828 . collect ( ) ) ;
2929
3030 Ok ( Array :: from_parts ( elements, dimensions) )
@@ -41,7 +41,7 @@ impl<T> FromSql for Array<T>
4141impl < T > ToSql for Array < T >
4242 where T : ToSql
4343{
44- fn to_sql ( & self , ty : & Type , w : & mut Vec < u8 > , info : & SessionInfo ) -> Result < IsNull , Box < Error + Sync + Send > > {
44+ fn to_sql ( & self , ty : & Type , w : & mut Vec < u8 > ) -> Result < IsNull , Box < Error + Sync + Send > > {
4545 let element_type = match ty. kind ( ) {
4646 & Kind :: Array ( ref ty) => ty,
4747 _ => unreachable ! ( ) ,
@@ -62,7 +62,7 @@ impl<T> ToSql for Array<T>
6262 element_type. oid ( ) ,
6363 elements,
6464 |v, w| {
65- match v. to_sql ( element_type, w, info ) {
65+ match v. to_sql ( element_type, w) {
6666 Ok ( IsNull :: Yes ) => Ok ( postgres_protocol:: IsNull :: Yes ) ,
6767 Ok ( IsNull :: No ) => Ok ( postgres_protocol:: IsNull :: No ) ,
6868 Err ( e) => Err ( e) ,
0 commit comments