File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ #[ derive( Debug ) ]
12pub struct SqlValueMetadata {
23 pub sql_type : Option < & ' static str > ,
34 pub operator : Option < & ' static str > ,
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ impl SqlTypeProvider for bool {
132132
133133impl SqlTypeProvider for DateTimeAsMicroseconds {
134134 fn get_sql_type ( metadata : Option < SqlValueMetadata > ) -> TableColumnType {
135- if let Some ( metadata) = metadata {
135+ if let Some ( metadata) = & metadata {
136136 if let Some ( sql_type) = metadata. sql_type {
137137 if sql_type == "timestamp" {
138138 return TableColumnType :: Timestamp ;
@@ -144,6 +144,6 @@ impl SqlTypeProvider for DateTimeAsMicroseconds {
144144 }
145145 }
146146
147- panic ! ( "Sql type is not set" )
147+ panic ! ( "Sql type is not set: {:?}" , metadata )
148148 }
149149}
You can’t perform that action at this time.
0 commit comments