Commit 9fead718 authored by Simon Morlat's avatar Simon Morlat

Fix crash during migration on Android by avoiding to throw exceptions....

Fix crash during migration on Android by avoiding to throw exceptions. Apparently exceptions do not work reliabily on android, at least not with our current toolchain and compilation options.
parent 7137ca85
......@@ -1256,13 +1256,11 @@ template<typename T>
static T getValueFromRow (const soci::row &row, int index, bool &isNull) {
isNull = false;
try {
return row.get<T>(size_t(index));
} catch (const exception &) {
if (row.get_indicator(size_t(index)) == soci::i_null){
isNull = true;
return T();
}
return T();
return row.get<T>(size_t(index));
}
// -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment