Skip to content

Commit

Permalink
better sql_type error
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmicu committed Feb 5, 2024
1 parent 0f0f139 commit 06eea89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3118,8 +3118,9 @@ pub fn get_table_constraints(
}

for row in colvals {
let sql_type =
get_sql_type(datatypes_config, &SerdeMap::new(), &row.datatype, pool).unwrap();
let datatype = &row.datatype;
let sql_type = get_sql_type(datatypes_config, &SerdeMap::new(), datatype, pool)
.expect(&format!("Unable to determine SQL type for {}", datatype));
let column_name = &row.column;
let structure = &row.structure;
if structure != "" {
Expand Down

0 comments on commit 06eea89

Please sign in to comment.