Clean up after tests

For #64
This commit is contained in:
Paul Ramsey 2015-06-01 10:57:30 -07:00
parent 54973142f6
commit e7ef5e7e8e
2 changed files with 4 additions and 0 deletions

View File

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

View File

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