aboutsummaryrefslogtreecommitdiff
path: root/res/sql/functions/pg_gen_uuid.sql
blob: c592385a5fd82e8e9f323488349ec4eaeac8970b (plain)
1
2
3
4
5
6
7
8
9
CREATE OR REPLACE FUNCTION gen_uuid()
  RETURNS VARCHAR
AS '
BEGIN

  RETURN upper(cast(uuid_generate_v4() AS VARCHAR));

END;
' LANGUAGE plpgsql;