From f45373eb5145e973fc3164cbf3c96c09ba3c2b84 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 19 May 2020 10:00:31 +0200 Subject: [PATCH] misc: quote table names when droping (#43063) --- wcs_olap/feeder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs_olap/feeder.py b/wcs_olap/feeder.py index 421cfbc..47d3507 100644 --- a/wcs_olap/feeder.py +++ b/wcs_olap/feeder.py @@ -328,7 +328,7 @@ class WcsOlapFeeder(object): """ self.ex("SELECT tablename FROM pg_tables WHERE schemaname = '%s'" % schema) for table in self.cur.fetchall(): - tablename = '%s.%s' % (schema, table[0]) + tablename = '%s.%s' % (quote(schema), quote(table[0])) self.ex('DROP TABLE IF EXISTS %s CASCADE;' % tablename) def do_dates_table(self): -- 2.26.2