]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_session_dbd: Update the sql query for sessions updates.
authorGraham Leggett <minfrin@apache.org>
Fri, 31 May 2013 11:21:14 +0000 (11:21 +0000)
committerGraham Leggett <minfrin@apache.org>
Fri, 31 May 2013 11:21:14 +0000 (11:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1488164 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_session_dbd.xml

index 88cb809f3fd40035c1d2db002d1962e951f02860..adc5ba2ebd73740ad885584516e2fc704673732a 100644 (file)
@@ -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 &gt; %lld)" selectsession
 DBDPrepareSQL "delete from session where expiry != 0 and expiry &lt; %lld" cleansession