From cb25a7f4a99eff44ae27d0528c2b1729e3ab0f75 Mon Sep 17 00:00:00 2001 From: Dan Hosseinzadeh Date: Wed, 31 Aug 2016 15:38:37 -0400 Subject: [PATCH] Assume BLOB for unknown sqltypes rather than throwing an exception - Affects only the SQLite implementation issue-1375 Signed-off-by: Dan Hosseinzadeh --- Data/SQLite/src/Utility.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Data/SQLite/src/Utility.cpp b/Data/SQLite/src/Utility.cpp index 4b835af86..000ac101c 100644 --- a/Data/SQLite/src/Utility.cpp +++ b/Data/SQLite/src/Utility.cpp @@ -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; + } }