From 1f046f0539cb363290cba6bd52328d69986fc684 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 30 Jan 2008 18:22:09 +0000 Subject: Correcting md5() incompatibility with Pg 8.3 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2064 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Auth/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LedgerSMB/Auth') diff --git a/LedgerSMB/Auth/DB.pm b/LedgerSMB/Auth/DB.pm index 747d4d82..5b582bd3 100755 --- a/LedgerSMB/Auth/DB.pm +++ b/LedgerSMB/Auth/DB.pm @@ -141,7 +141,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