Merge pull request #83 from CartoDB/64-usertables

Replace CDB_UserTables with something that can handle multi-user accounts
This commit is contained in:
Raul Ochoa
2015-06-30 11:33:32 +02:00
4 changed files with 21 additions and 28 deletions

View File

@@ -31,6 +31,8 @@ create table sc.test (a int);
insert into sc.test values (1);
WITH inp AS ( select 'select * from sc.test'::text as q )
SELECT q, CDB_QueryTables(q) from inp;
DROP TABLE sc.test;
DROP SCHEMA sc;
WITH inp AS ( select 'SELECT
* FROM geometry_columns'::text as q )

View File

@@ -17,5 +17,7 @@ CREATE SCHEMA
CREATE TABLE
INSERT 0 1
select * from sc.test|{sc.test}
DROP TABLE
DROP SCHEMA
SELECT
* FROM geometry_columns|{pg_catalog.pg_attribute,pg_catalog.pg_class,pg_catalog.pg_namespace,pg_catalog.pg_type}