File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ pub async fn prepare(
100
100
name : field. name ( ) . to_string ( ) ,
101
101
table_oid : NonZeroU32 :: new ( field. table_oid ( ) ) ,
102
102
column_id : NonZeroI16 :: new ( field. column_id ( ) ) ,
103
- type_,
103
+ r#type : type_,
104
104
} ;
105
105
columns. push ( column) ;
106
106
}
Original file line number Diff line number Diff line change @@ -66,11 +66,12 @@ impl Statement {
66
66
}
67
67
68
68
/// Information about a column of a query.
69
+ #[ derive( Debug ) ]
69
70
pub struct Column {
70
71
pub ( crate ) name : String ,
71
72
pub ( crate ) table_oid : Option < NonZeroU32 > ,
72
73
pub ( crate ) column_id : Option < NonZeroI16 > ,
73
- pub ( crate ) type_ : Type ,
74
+ pub ( crate ) r#type : Type ,
74
75
}
75
76
76
77
impl Column {
@@ -92,17 +93,6 @@ impl Column {
92
93
93
94
/// Returns the type of the column.
94
95
pub fn type_ ( & self ) -> & Type {
95
- & self . type_
96
- }
97
- }
98
-
99
- impl fmt:: Debug for Column {
100
- fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
101
- fmt. debug_struct ( "Column" )
102
- . field ( "name" , & self . name )
103
- . field ( "table_oid" , & self . table_oid )
104
- . field ( "column_id" , & self . column_id )
105
- . field ( "type" , & self . type_ )
106
- . finish ( )
96
+ & self . r#type
107
97
}
108
98
}
You can’t perform that action at this time.
0 commit comments