mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-10 03:33:08 +01:00
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:
parent
07fc2e0e3e
commit
cb25a7f4a9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user