Skip to content

Commit

Permalink
#38 Interprete all unknown or unsupported types as String
Browse files Browse the repository at this point in the history
  • Loading branch information
artpaul committed Oct 30, 2017
1 parent 32364ca commit 3297249
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions driver/result_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ void assignTypeInfo(const TypeAst & ast, ColumnInfo * info)
}
else
{
throw std::runtime_error("compound types doesn't supported: " + info->type);
// Interprete all unsupported types as String.
info->type_without_parameters = "String";
}
}

Expand Down Expand Up @@ -128,7 +129,8 @@ void ResultSet::init(Statement * statement_, IResultMutatorPtr mutator_)
}
else
{
throw std::runtime_error("can't pase name of type: " + columns_info[i].type);
// Interprete all unknown types as String.
columns_info[i].type_without_parameters = "String";
}
}
}
Expand Down

0 comments on commit 3297249

Please sign in to comment.