mirror of https://github.com/apache/superset.git
This reverts commit 6bdbd2bf50
.
This commit is contained in:
parent
792efefcb4
commit
b7e7ef2831
|
@ -338,8 +338,7 @@ class TableColumn(Model, BaseColumn, CertificationMixin):
|
|||
],
|
||||
) -> str:
|
||||
"""Convert datetime object to a SQL expression string"""
|
||||
dttm_type = self.type or ("DATETIME" if self.is_dttm else None)
|
||||
sql = self.db_engine_spec.convert_dttm(dttm_type, dttm) if dttm_type else None
|
||||
sql = self.db_engine_spec.convert_dttm(self.type, dttm) if self.type else None
|
||||
|
||||
if sql:
|
||||
return sql
|
||||
|
|
Loading…
Reference in New Issue