From e79d05fd775e8f44aad4d5af11e8d25eb58599b1 Mon Sep 17 00:00:00 2001 From: Nic Date: Sat, 16 Dec 2017 16:31:09 +1100 Subject: [PATCH] #4058 Fix Oracle timestamps (Oracle "ORA-00907: missing right parenthesis" error) (#4065) --- superset/db_engine_specs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index 158d9d6cfc..a176a25b3c 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -1073,7 +1073,7 @@ class OracleEngineSpec(PostgresEngineSpec): @classmethod def convert_dttm(cls, target_type, dttm): return ( - """TO_TIMESTAMP('{}', 'YYYY-MM-DD'T'HH24:MI:SS.ff6')""" + """TO_TIMESTAMP('{}', 'YYYY-MM-DD"T"HH24:MI:SS.ff6')""" ).format(dttm.isoformat())