From e7ef5e7e8e12f977f759f8016752b6f34a006765 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 1 Jun 2015 10:57:30 -0700 Subject: [PATCH] Clean up after tests For #64 --- test/CDB_QueryTablesTest.sql | 2 ++ test/CDB_QueryTablesTest_expect | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/CDB_QueryTablesTest.sql b/test/CDB_QueryTablesTest.sql index b87315c..695bf70 100644 --- a/test/CDB_QueryTablesTest.sql +++ b/test/CDB_QueryTablesTest.sql @@ -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 ) diff --git a/test/CDB_QueryTablesTest_expect b/test/CDB_QueryTablesTest_expect index bfe59df..47899ed 100644 --- a/test/CDB_QueryTablesTest_expect +++ b/test/CDB_QueryTablesTest_expect @@ -13,5 +13,7 @@ CREATE SCHEMA CREATE TABLE INSERT 0 1 select * from sc.test|{sc.test} +DROP TABLE sc.test; +DROP SCHEMA sc; SELECT * FROM geometry_columns|{pg_catalog.pg_attribute,pg_catalog.pg_class,pg_catalog.pg_namespace,pg_catalog.pg_type}