[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [2064] trunk/LedgerSMB/Auth/DB.pm



Revision: 2064
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2064&view=rev
Author:   einhverfr
Date:     2008-01-30 10:22:09 -0800 (Wed, 30 Jan 2008)

Log Message:
-----------
Correcting md5() incompatibility with Pg 8.3

Modified Paths:
--------------
    trunk/LedgerSMB/Auth/DB.pm

Modified: trunk/LedgerSMB/Auth/DB.pm
===================================================================
--- trunk/LedgerSMB/Auth/DB.pm	2008-01-30 18:19:18 UTC (rev 2063)
+++ trunk/LedgerSMB/Auth/DB.pm	2008-01-30 18:22:09 UTC (rev 2064)
@@ -141,7 +141,7 @@
     my $seedRandom = $dbh->prepare("SELECT setseed(?);");
 
     my $fetchSequence =
-      $dbh->prepare("SELECT nextval('session_session_id_seq'), md5(random());");
+      $dbh->prepare("SELECT nextval('session_session_id_seq'), md5(random()::text);");
 
     my $createNew = $dbh->prepare(
         "INSERT INTO session (session_id, users_id, token, transaction_id) 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.