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

OcciStmt::bindOptionalString() now calls occi::Statement::setNull()

parent ea760c3d
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ void OcciStmt::bindOptionalString(const std::string &paramName, const optional<s
if(paramValue) {
m_stmt->setString(paramIdx, paramValue.value());
} else {
m_stmt->setString(paramIdx, nullptr);
m_stmt->setNull(paramIdx, oracle::occi::OCCISTRING);
}
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed for SQL statement " + getSql() + ": " +
......
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