From 9ea345a12bf755c33c102f611ef17208b28b629e Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 30 Jan 2008 18:19:18 +0000 Subject: Correcting md5() incompatibility with Pg 8.3 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@2063 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Session/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/Session/DB.pm b/LedgerSMB/Session/DB.pm index c595a1c0..5ea168ed 100755 --- a/LedgerSMB/Session/DB.pm +++ b/LedgerSMB/Session/DB.pm @@ -158,7 +158,7 @@ sub session_create { 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) -- cgit v1.2.3