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

SF.net SVN: ledger-smb: [2063] branches/1.2/LedgerSMB/Session/DB.pm



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

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

Modified Paths:
--------------
    branches/1.2/LedgerSMB/Session/DB.pm

Modified: branches/1.2/LedgerSMB/Session/DB.pm
===================================================================
--- branches/1.2/LedgerSMB/Session/DB.pm	2008-01-28 01:52:53 UTC (rev 2062)
+++ branches/1.2/LedgerSMB/Session/DB.pm	2008-01-30 18:19:18 UTC (rev 2063)
@@ -158,7 +158,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.