6.0.0-beta1
7/15/25

[#8600] SQL syntax error in session handling with MSSQL
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

History
09/25/2009 02:22:41 PM CVS Commit Comment #4 Reply to this comment
09/25/2009 09:13:05 AM Jan Schneider Assigned to Matt Selsky
State ⇒ Resolved
Milestone ⇒ 3.3.6
 
09/23/2009 05:12:58 PM moreda (at) allenta (dot) com Comment #1
Priority ⇒ 2. Medium
New Attachment: fix-greater-than-or-equal-to.diff Download
Patch ⇒ Yes
Milestone ⇒
Summary ⇒ SQL syntax error in session handling with MSSQL
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ Horde Base
Reply to this comment
This seems to me a syntax error in a SQL sentence that arised when 
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.


Saved Queries