From b544f4f9381bf139e1217aaa67b5c8a1b92c84cc Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 30 Sep 2019 13:39:55 +0200 Subject: [PATCH 1/2] quote status table (#36503) --- tests/olap.model | 2 +- wcs_olap/feeder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/olap.model b/tests/olap.model index 2e5cb19..61e18db 100644 --- a/tests/olap.model +++ b/tests/olap.model @@ -334,7 +334,7 @@ "detail" : "id", "master" : "status_id", "name" : "status", - "table" : "status_demande" + "table" : "\"status_demande\"" }, { "detail" : "id", diff --git a/wcs_olap/feeder.py b/wcs_olap/feeder.py index 6447fcd..1cb1ae9 100644 --- a/wcs_olap/feeder.py +++ b/wcs_olap/feeder.py @@ -906,7 +906,7 @@ class WcsFormdefFeeder(object): # add dimension for status cube['joins'].append({ 'name': 'status', - 'table': self.status_table_name, + 'table': quote(self.status_table_name), 'master': 'status_id', 'detail': 'id', }) -- 2.23.0