tDo not quote dbname identifier

Turns out that for caching it is our standard not to have the dbname
quoted.
This commit is contained in:
Rafa de la Torre 2016-02-11 16:09:01 +01:00
parent 9596e8d9bc
commit 2f26b44142

View File

@ -159,10 +159,9 @@ AS $$
),
fqtn AS (
SELECT
quote_ident(
(CASE WHEN c.relkind = 'f' THEN cartodb._cdb_dbname_of_foreign_table(query_tables_oid.reloid)
ELSE current_database()
END)::text) AS dbname,
END)::text AS dbname,
quote_ident(n.nspname::text) schema_name,
quote_ident(c.relname::text) table_name,
c.relkind,