From 629214f32f88db7fa279b509f5958ce19554ae2f Mon Sep 17 00:00:00 2001 From: Guido Fioravantti Date: Mon, 26 Oct 2015 15:54:08 +0100 Subject: [PATCH] Adds explanation for SCHEMA DEFAULT NULL 173 --- scripts-available/CDB_Helper.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts-available/CDB_Helper.sql b/scripts-available/CDB_Helper.sql index 9743a78..40d5c02 100644 --- a/scripts-available/CDB_Helper.sql +++ b/scripts-available/CDB_Helper.sql @@ -1,5 +1,6 @@ -- UTF8 safe and lenght aware. Find a unique identifier with a given prefix --- and/or suffix and withing a schema. +-- and/or suffix and withing a schema. If a schema is not specified, the identifier +-- is guaranteed to be unique for all schemas. CREATE OR REPLACE FUNCTION cartodb._CDB_Unique_Identifier(prefix TEXT, relname TEXT, suffix TEXT, schema TEXT DEFAULT NULL) RETURNS TEXT AS $$ @@ -57,7 +58,7 @@ END; $$ LANGUAGE 'plpgsql'; -- UTF8 safe and lenght aware. Find a unique identifier for a column with a given prefix --- and/or suffix and withing a realtion. If no reloid is give, all relations are examined +-- and/or suffix and withing a realtion. If no reloid is give, all relations are examined. CREATE OR REPLACE FUNCTION cartodb._CDB_Unique_Column_Identifier(prefix TEXT, relname TEXT, suffix TEXT, reloid REGCLASS DEFAULT NULL) RETURNS TEXT AS $$