aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/markit/rates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/markit/rates.py b/python/markit/rates.py
index 858b0185..8f1c0ffb 100644
--- a/python/markit/rates.py
+++ b/python/markit/rates.py
@@ -88,7 +88,7 @@ def downloadMarkitIRData(
values = sql.SQL(", ").join(
sql.Placeholder() * (len(instruments) + 1)
) # +1 for effective_date
- table_name = sql.SQL(f"{currency}_{'OIS_' if ois_flag else ''}rates")
+ table_name = sql.Identifier(f"{currency}_{'OIS_' if ois_flag else ''}rates")
insert_str = sql.SQL(
"INSERT INTO {}(effective_date, {}) VALUES({}) " "ON CONFLICT DO NOTHING"
).format(table_name, names, values)