summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-01-30 18:19:18 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-01-30 18:19:18 +0000
commit9ea345a12bf755c33c102f611ef17208b28b629e (patch)
treef05b8e14b83472547e0e0cc7481ed2eaa31ff8e0
parent7a09e8059a21fbc63faaf672318d2e99954152de (diff)
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
-rwxr-xr-xLedgerSMB/Session/DB.pm2
1 files changed, 1 insertions, 1 deletions
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)