Backport fixes from main branch and rev version.
[shibboleth/cpp-sp.git] / odbc-store / odbc-store.cpp
index 0e9c089..6a298df 100644 (file)
@@ -532,7 +532,7 @@ int ODBCStorageService::readRow(
     if (pexpiration)
         q << ",expires";
     if (pvalue)
-        q << ",CASE version WHEN " << version << " THEN nullptr ELSE value END";
+        q << ",CASE version WHEN " << version << " THEN null ELSE value END";
     q << " FROM " << table << " WHERE context='" << scontext << "' AND id='" << skey << "' AND expires > " << timebuf;
     freeSafeSQL(scontext, context);
     freeSafeSQL(skey, key);