From 5c3c0f5fc9a05c1e034d2694937fa94d3bb91a26 Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Wed, 6 Apr 2016 18:57:52 +0200 Subject: [PATCH] Fix bug in CDB_DropOverviews Fixes #223 --- scripts-available/CDB_Overviews.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts-available/CDB_Overviews.sql b/scripts-available/CDB_Overviews.sql index b80be3d..bfd1a09 100644 --- a/scripts-available/CDB_Overviews.sql +++ b/scripts-available/CDB_Overviews.sql @@ -120,7 +120,7 @@ BEGIN FOR row IN SELECT * FROM CDB_Overviews(reloid) LOOP - EXECUTE Format('DROP TABLE %I.%I;', schema_name, row.overview_table); + EXECUTE Format('DROP TABLE %s;', row.overview_table); RAISE NOTICE 'Dropped overview for level %: %', row.z, row.overview_table; END LOOP; END;