[dev] Patch to make pgsql sessionhandler work

Jason M. Felice jfelice at cronosys.com
Wed May 28 13:59:15 PDT 2003


Blobs were not decoded properly for pgsql.  mssql blobs were never decoded,
and this catches that case as well, though I can't test.

-Jay 'Eraserhead' Felice

Index: lib/SQL.php
===================================================================
RCS file: /repository/horde/lib/SQL.php,v
retrieving revision 1.12
diff -u -u -r1.12 SQL.php
--- lib/SQL.php	3 Jan 2003 15:20:12 -0000	1.12
+++ lib/SQL.php	28 May 2003 20:46:37 -0000
@@ -61,8 +61,8 @@
 
             switch ($dbh->dbsyntax) {
             case 'pgsql':
-                $data = substr($result, 2);
-                $result = pack('H' . strlen($data), $data);
+	    case 'mssql':
+                $result = pack('H' . strlen($result), $result);
                 break;
             }
         }


More information about the dev mailing list