From 5e36b13fda6b231547b71caf34f567d4697ae878 Mon Sep 17 00:00:00 2001
From: Steven Murray <steven.murray@cern.ch>
Date: Thu, 28 Jul 2016 11:36:54 +0200
Subject: [PATCH] OcciStmt::bindOptionalString() now calls
 occi::Statement::setNull()

---
 rdbms/OcciStmt.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rdbms/OcciStmt.cpp b/rdbms/OcciStmt.cpp
index 222f7eb4e8..e1a932a33f 100644
--- a/rdbms/OcciStmt.cpp
+++ b/rdbms/OcciStmt.cpp
@@ -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() + ": " +
-- 
GitLab