diff options
Diffstat (limited to 'LedgerSMB/Session')
-rwxr-xr-x | LedgerSMB/Session/DB.pm | 2 |
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) |