Skip to content
Browse files
Merge pull request #2395 from medspx/dbmanager_oracle_timestamp
DBManager: support timestamp values for Oracle
  • Loading branch information
jef-n committed Oct 23, 2015
2 parents d6f66ee + 0aa0b4c commit 44590e9a712a405dff46a18e8e36e076e5b2ccfc
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/db_manager/db_plugins/oracle/
@@ -64,6 +64,9 @@ def _sanitizeTableField(self, field):
if field.dataType.upper() == u"DATE":
return u"CAST({} AS VARCHAR2(8))".format(
if u"TIMESTAMP" in field.dataType.upper():
return u"TO_CHAR({}, 'YYYY-MM-DD HH:MI:SS.FF')".format(
if field.dataType.upper() == u"NUMBER":
if not field.charMaxLen:
return u"CAST({} AS VARCHAR2(135))".format(

0 comments on commit 44590e9

Please sign in to comment.