File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ use std::borrow::{ToOwned, Cow};
6565use std:: cell:: { Cell , RefCell } ;
6666use std:: collections:: { VecDeque , HashMap } ;
6767use std:: fmt;
68- use std:: iter:: { IntoIterator , RandomAccessIterator } ;
68+ use std:: iter:: IntoIterator ;
6969use std:: io:: { self , BufStream } ;
7070use std:: io:: prelude:: * ;
7171use std:: mem;
@@ -1353,7 +1353,7 @@ impl<'conn> Statement<'conn> {
13531353 "expected {} parameters but got {}" ,
13541354 self . param_types. len( ) ,
13551355 params. len( ) ) ;
1356- debug ! ( "executing statement {}" , self . name) ;
1356+ debug ! ( "executing statement {} with parameters: {:?} " , self . name, params ) ;
13571357 let mut values = vec ! [ ] ;
13581358 for ( param, ty) in params. iter ( ) . zip ( self . param_types . iter ( ) ) {
13591359 let mut buf = vec ! [ ] ;
@@ -2032,7 +2032,7 @@ impl<'a> CopyInStatement<'a> {
20322032 where I : Iterator < Item =J > , J : StreamIterator {
20332033 let mut conn = self . conn . conn . borrow_mut ( ) ;
20342034
2035- debug ! ( "executing statement {}" , self . name) ;
2035+ debug ! ( "executing COPY IN statement {}" , self . name) ;
20362036 try!( conn. write_messages ( & [
20372037 Bind {
20382038 portal : "" ,
Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ pub enum IsNull {
605605}
606606
607607/// A trait for types that can be converted into Postgres values.
608- pub trait ToSql {
608+ pub trait ToSql : fmt :: Debug {
609609 /// Converts the value of `self` into the binary format of the specified
610610 /// Postgres `Type`, writing it to `out`.
611611 ///
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ use types::IsNull;
2424/// }
2525/// # Ok(()) }
2626/// ```
27+ #[ derive( Debug ) ]
2728pub struct Slice < ' a , T : ' a + ToSql > ( pub & ' a [ T ] ) ;
2829
2930impl < ' a , T : ' a + ToSql > ToSql for Slice < ' a , T > {
You can’t perform that action at this time.
0 commit comments