This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new e79d05f  #4058 Fix Oracle timestamps (Oracle "ORA-00907: missing right 
parenthesis" error) (#4065)
e79d05f is described below

commit e79d05fd775e8f44aad4d5af11e8d25eb58599b1
Author: Nic <[email protected]>
AuthorDate: Sat Dec 16 16:31:09 2017 +1100

    #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 158d9d6..a176a25 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())
 
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to