Skip to content
Snippets Groups Projects
Commit 233f4f96 authored by Steven Murray's avatar Steven Murray
Browse files

Fixed return of nullopt in OcciRset::columnOptionalUint64()

parent 427be1a1
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ optional<uint64_t> OcciRset::columnOptionalUint64(const std::string &colName) co
const int colIdx = m_colNameToIdx.getIdx(colName);
const std::string stringValue = m_rset->getString(colIdx);
if(stringValue.empty()) {
throw nullopt;
return nullopt;
}
if(!utils::isValidUInt(stringValue)) {
throw exception::Exception(std::string("Column ") + colName + " contains the value " + stringValue +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment