Skip to content

Commit

Permalink
add missed datatype to the conversion function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and wonder-sk committed Jul 11, 2022
1 parent 751c5a9 commit c4f9728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geodiff/src/tableschema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ TableColumnType postgresToBaseColumn(
{
type.baseType = TableColumnType::INTEGER;
}
else if ( dbType == "double precision" || dbType == "real" || startsWith( dbType, "numeric" ) )
else if ( dbType == "double precision" || dbType == "real" || startsWith( dbType, "numeric" ) ||
startsWith( dbType, "decimal" ) )
{
type.baseType = TableColumnType::DOUBLE;
}
Expand Down

0 comments on commit c4f9728

Please sign in to comment.