Import cartodb/lib/sql/test, add search_path tweaker

This commit is contained in:
Sandro Santilli
2014-05-05 18:48:48 +02:00
parent 5e28417b3d
commit 0960276046
30 changed files with 556 additions and 22 deletions

11
test/CDB_UserTables.sql Normal file
View File

@@ -0,0 +1,11 @@
create table pub(a int);
create table prv(a int);
GRANT SELECT ON TABLE pub TO publicuser;
REVOKE SELECT ON TABLE prv FROM publicuser;
SELECT CDB_UserTables() ORDER BY 1;
SELECT 'all',CDB_UserTables('all') ORDER BY 2;
SELECT 'public',CDB_UserTables('public') ORDER BY 2;
SELECT 'private',CDB_UserTables('private') ORDER BY 2;
SELECT '--unsupported--',CDB_UserTables('--unsupported--') ORDER BY 2;
drop table pub;
drop table prv;