https://bugs.internet2.edu/jira/browse/SSPCPP-372
authorscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 20 May 2011 00:47:30 +0000 (00:47 +0000)
committerscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 20 May 2011 00:47:30 +0000 (00:47 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3431 cb58f699-b61c-0410-a6fe-9272a202ed29

odbc-store/odbc-store.cpp

index 0e9c089..3260a62 100644 (file)
@@ -1,11 +1,12 @@
 /*
- *  Copyright 2001-2010 Internet2
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to UCAID under one or more contributor license agreements.
+ * See the NOTICE file distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file to you under
+ * the Apache License, Version 2.0 (the "License"); you may not use this
+ * file except in compliance with the License.  You may obtain a copy of the
+ * License at
  *
- *     http://www.apache.org/licenses/LICENSE-2.0
+ *       http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -532,7 +533,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);