}
const unsigned char *value = reinterpret_cast<const unsigned char*>(
sqlcipher3_column_blob(m_stmt, column));
+ if (!value) {
+ return boost::optional<RawBuffer>();
+ }
int length = sqlcipher3_column_bytes(m_stmt, column);
LogPedantic("Got blob of length: " << length);
- if (!value)
- return boost::optional<RawBuffer>();
-
RawBuffer temp(value, value + length);
return boost::optional<RawBuffer>(temp);
}