Assume BLOB for unknown sqltypes rather than throwing an exception

- Affects only the SQLite implementation

issue-1375

Signed-off-by: Dan Hosseinzadeh <dan.zadeh@pathcore.ca>
This commit is contained in:
Dan Hosseinzadeh 2016-08-31 15:38:37 -04:00
parent 07fc2e0e3e
commit cb25a7f4a9

View File

@ -147,9 +147,12 @@ MetaColumn::ColumnDataType Utility::getColumnType(sqlite3_stmt* pStmt, std::size
sqliteType = sqliteType.substr(0, sqliteType.find_first_of(" ("));
TypeMap::const_iterator it = _types.find(Poco::trimInPlace(sqliteType));
if (_types.end() == it) throw Poco::NotFoundException();
return it->second;
if (_types.end() == it) {
return MetaColumn::FDT_BLOB;
}
else {
return it->second;
}
}