Skip to content
Browse files

DBManager: support timestamp values for Oracle

  • Loading branch information
Médéric Ribreux authored and rldhont committed Dec 22, 2015
1 parent 7509608 commit f1e275dba16b474457c37426630333453466cd6e
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 f1e275d

Please sign in to comment.
You can’t perform that action at this time.