summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/modules/Session.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/modules/Session.sql b/sql/modules/Session.sql
index 58de0f2e..8b8b65c6 100644
--- a/sql/modules/Session.sql
+++ b/sql/modules/Session.sql
@@ -28,7 +28,7 @@ BEGIN
END IF;
INSERT INTO session(users_id, token, last_used, transaction_id)
- SELECT id, md5(random()), now(), 0
+ SELECT id, md5(random()::text), now(), 0
FROM users WHERE username = SESSION_USER;
-- TODO-- remove transaction_id field from session table