From 2c43943df6c1d1650f10c6c2bc818682af43b43d Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Tue, 26 Apr 2016 18:27:52 +0200 Subject: [PATCH] Fix syntax --- scripts-available/CDB_Overviews.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts-available/CDB_Overviews.sql b/scripts-available/CDB_Overviews.sql index 676e364..01ce9d7 100644 --- a/scripts-available/CDB_Overviews.sql +++ b/scripts-available/CDB_Overviews.sql @@ -98,7 +98,7 @@ AS $$ base_table REGCLASS; BEGIN SELECT * FROM _cdb_split_table_name(overview_table) INTO schema_name, table_name; - base_name := CDB_OverviewBaseTableName(table_name); + base_name := _CDB_OverviewBaseTableName(table_name); IF base_name != table_name THEN base_table := Format('%I.%I', schema_name, base_name)::regclass; ELSE @@ -801,7 +801,7 @@ AS $$ IF NOT columns LIKE '%_feature_count%' THEN columns := columns || ', n AS _feature_count'; - END IF + END IF; EXECUTE Format('DROP TABLE IF EXISTS %I.%I CASCADE;', schema_name, overview_rel);