summaryrefslogtreecommitdiff
path: root/LedgerSMB/Auth
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-01-30 18:22:09 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-01-30 18:22:09 +0000
commit1f046f0539cb363290cba6bd52328d69986fc684 (patch)
tree097bc0086313065d47e357053e789aea622c56f1 /LedgerSMB/Auth
parent8712661b82a8a19d1be225c536e7c55b9ccbc5f4 (diff)
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
Diffstat (limited to 'LedgerSMB/Auth')
-rwxr-xr-xLedgerSMB/Auth/DB.pm2
1 files changed, 1 insertions, 1 deletions
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)