diff options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/modules/Session.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/modules/Session.sql b/sql/modules/Session.sql index 0a1e97f6..e0547c22 100644 --- a/sql/modules/Session.sql +++ b/sql/modules/Session.sql @@ -12,6 +12,7 @@ BEGIN RETURN TRUE; ELSE RETURN FALSE; + END IF; END; $$ language plpgsql; @@ -22,7 +23,7 @@ BEGIN INSERT INTO open_forms (session_id) VALUES (in_session_id); RETURN currval('form_id_seq'); END; -$$ LANGUAGE PLPGSQL +$$ LANGUAGE PLPGSQL; CREATE OR REPLACE FUNCTION session_check(in_session_id int, in_token text) RETURNS session AS |