From a0fe55bd5dee91d7dbbf57c285fba442d25e6896 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Fri, 12 Feb 2016 11:27:26 +0100 Subject: [PATCH] Add a small bit of func doc about the quoting --- scripts-available/CDB_ForeignTable.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts-available/CDB_ForeignTable.sql b/scripts-available/CDB_ForeignTable.sql index 5b1c894..b03d284 100644 --- a/scripts-available/CDB_ForeignTable.sql +++ b/scripts-available/CDB_ForeignTable.sql @@ -148,6 +148,7 @@ $$ LANGUAGE SQL; -- Return a set of (dbname, schema_name, table_name, updated_at) -- It is aware of foreign tables -- It assumes the local (schema_name, table_name) map to the remote ones with the same name +-- Note: dbname is never quoted whereas schema and table names are when needed. CREATE OR REPLACE FUNCTION cartodb.CDB_QueryTables_Updated_At(query text) RETURNS TABLE(dbname text, schema_name text, table_name text, updated_at timestamptz) AS $$