diff --git a/rdbms/OcciStmt.cpp b/rdbms/OcciStmt.cpp index 222f7eb4e88ee17b8e8068fa43985caa679e82ab..e1a932a33f6e414e7d44d178b2ccedbe74e94d76 100644 --- a/rdbms/OcciStmt.cpp +++ b/rdbms/OcciStmt.cpp @@ -122,7 +122,7 @@ void OcciStmt::bindOptionalString(const std::string ¶mName, 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() + ": " +