From 1dcc23db15e95d542ff55066b259d5e1242da6b2 Mon Sep 17 00:00:00 2001 From: Raul Marin Date: Thu, 24 Oct 2019 13:45:36 +0200 Subject: [PATCH] CDB_UserTablesTest: Make tests work even if the user doesn't have cartodb in the searchpath --- test/CDB_UserTablesTest.sql | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/CDB_UserTablesTest.sql b/test/CDB_UserTablesTest.sql index 3e16c1b..101669d 100644 --- a/test/CDB_UserTablesTest.sql +++ b/test/CDB_UserTablesTest.sql @@ -17,16 +17,16 @@ 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; +SELECT cartodb.CDB_UserTables() ORDER BY 1; +SELECT 'all', cartodb.CDB_UserTables('all') ORDER BY 2; +SELECT 'public', cartodb.CDB_UserTables('public') ORDER BY 2; +SELECT 'private', cartodb.CDB_UserTables('private') ORDER BY 2; +SELECT '--unsupported--', cartodb.CDB_UserTables('--unsupported--') ORDER BY 2; -- now tests with public user \c contrib_regression publicuser -SELECT 'all_publicuser',CDB_UserTables('all') ORDER BY 2; -SELECT 'public_publicuser',CDB_UserTables('public') ORDER BY 2; -SELECT 'private_publicuser',CDB_UserTables('private') ORDER BY 2; +SELECT 'all_publicuser', cartodb.CDB_UserTables('all') ORDER BY 2; +SELECT 'public_publicuser', cartodb.CDB_UserTables('public') ORDER BY 2; +SELECT 'private_publicuser', cartodb.CDB_UserTables('private') ORDER BY 2; \c contrib_regression postgres DROP TABLE pub; DROP TABLE prv;