X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=blobdiff_plain;f=odbc-store%2Fodbc-store.cpp;h=4c1ac8915b809a26be894a05d10c0d385beb528d;hp=2fd13c4620d5b32c08110067f05552b2d393093f;hb=1ef6f26a463a31a371547f91d3b5766e1d852558;hpb=3a58b40dbac4d36f9bdad8d947548cacc26eaac7 diff --git a/odbc-store/odbc-store.cpp b/odbc-store/odbc-store.cpp index 2fd13c4..4c1ac89 100644 --- a/odbc-store/odbc-store.cpp +++ b/odbc-store/odbc-store.cpp @@ -563,7 +563,7 @@ int ODBCStorageService::updateRow(const char *table, const char* context, const char *scontext = makeSafeSQL(context); char *skey = makeSafeSQL(key); string q("SELECT version FROM "); - q = q + table + " WHERE context='" + scontext + "' AND id='" + key + "' AND expires > " + timebuf; + q = q + table + " WHERE context='" + scontext + "' AND id='" + skey + "' AND expires > " + timebuf; m_log.debug("SQL: %s", q.c_str()); @@ -607,7 +607,7 @@ int ODBCStorageService::updateRow(const char *table, const char* context, const q = q + "expires = " + timebuf; } - q = q + " WHERE context='" + scontext + "' AND id='" + key + "'"; + q = q + " WHERE context='" + scontext + "' AND id='" + skey + "'"; freeSafeSQL(scontext, context); freeSafeSQL(skey, key);