superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: #4058 Fix Oracle timestamps (Oracle "ORA-00907: missing right parenthesis" error) (#4065)
Date Sat, 16 Dec 2017 05:31:13 GMT
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 <nichobbs@users.noreply.github.com>
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
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message