File tree 1 file changed +2
-2
lines changed
wundergraph_cli/src/infer_schema_internals
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ pub fn load_foreign_key_constraints(
79
79
Ok ( constraints)
80
80
}
81
81
82
- pub fn determine_column_type ( attr : & ColumnInformation ) -> Result < ColumnType , Box < Error > > {
82
+ pub fn determine_column_type ( attr : & ColumnInformation ) -> Result < ColumnType , Box < dyn Error > > {
83
83
let tpe = determine_type_name ( & attr. type_name ) ?;
84
84
let unsigned = determine_unsigned ( & attr. type_name ) ;
85
85
@@ -91,7 +91,7 @@ pub fn determine_column_type(attr: &ColumnInformation) -> Result<ColumnType, Box
91
91
} )
92
92
}
93
93
94
- fn determine_type_name ( sql_type_name : & str ) -> Result < String , Box < Error > > {
94
+ fn determine_type_name ( sql_type_name : & str ) -> Result < String , Box < dyn Error > > {
95
95
let result = if sql_type_name == "tinyint(1)" {
96
96
"bool"
97
97
} else if sql_type_name. starts_with ( "int" ) {
You can’t perform that action at this time.
0 commit comments