From: Graham Leggett Date: Fri, 31 May 2013 11:21:14 +0000 (+0000) Subject: mod_session_dbd: Update the sql query for sessions updates. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c21bf481e2fe886b616433f3b44cbdc61ae02b1c;p=thirdparty%2Fapache%2Fhttpd.git mod_session_dbd: Update the sql query for sessions updates. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1488164 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_session_dbd.xml b/docs/manual/mod/mod_session_dbd.xml index 88cb809f3fd..adc5ba2ebd7 100644 --- a/docs/manual/mod/mod_session_dbd.xml +++ b/docs/manual/mod/mod_session_dbd.xml @@ -77,7 +77,7 @@ DBDriver pgsql DBDParams "dbname=apachesession user=apache password=xxxxx host=localhost" DBDPrepareSQL "delete from session where key = %s" deletesession -DBDPrepareSQL "update session set value = %s, expiry = %lld where key = %s" updatesession +DBDPrepareSQL "update session set value = %s, expiry = %lld, key = %s where key = %s" updatesession DBDPrepareSQL "insert into session (value, expiry, key) values (%s, %lld, %s)" insertsession DBDPrepareSQL "select value from session where key = %s and (expiry = 0 or expiry > %lld)" selectsession DBDPrepareSQL "delete from session where expiry != 0 and expiry < %lld" cleansession