Summary | SQL syntax error in session handling with MSSQL |
Queue | Horde Base |
Queue Version | 3.3.5 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | selsky (at) columbia (dot) edu |
Requester | moreda (at) allenta (dot) com |
Created | 09/23/2009 (5774 days ago) |
Due | |
Updated | 09/25/2009 (5772 days ago) |
Assigned | |
Resolved | 09/25/2009 (5772 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | 3.3.6 |
Patch | Yes |
Bug: 8600BFN
http://cvs.horde.org/diff.php/horde/docs/CHANGES?rt=horde&r1=1.1263&r2=1.1264&ty=u
State ⇒ Resolved
Milestone ⇒ 3.3.6
MFB: 1.22.10.20
Fix SQL syntax.
Bug: 8600Submitted by: moreda@allenta.com
http://git.horde.org/diff.php/framework/SessionHandler/lib/Horde/SessionHandler/Sql.php?rt=horde-git&r1=def290e68df5243289d2217150d7d1bd4c76581c&r2=2d8c8de6751fdff001a14d83637cb6198245f764
Fix SQL syntax.
Bug: 8600Submitted by: moreda@allenta.com
http://cvs.horde.org/diff.php/framework/SessionHandler/SessionHandler/Attic/sql.php?rt=horde&r1=1.22.10.19&r2=1.22.10.20&ty=u
Priority ⇒ 2. Medium
New Attachment: fix-greater-than-or-equal-to.diff
Patch ⇒ Yes
Milestone ⇒
Summary ⇒ SQL syntax error in session handling with MSSQL
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ Horde Base
using MSSQL as a backend for session information through PEAR's DB
abstraction layer. In lib/Horde/SessionHandler/sql.php, line 312 you
can find this query:
/* Build the SQL query. */
$query = 'SELECT session_id FROM ' . $this->_params['table'] .
' WHERE session_lastmodified => ?';
which seems incorrect because of the "=>" that should be ">=".
See trivial patch attached.