Getting datatype with its dialect (#3486)
This commit is contained in:
parent
c988080990
commit
6fe93e18c7
|
|
@ -598,7 +598,7 @@ class SqlaTable(Model, BaseDatasource):
|
|||
db_dialect = self.database.get_sqla_engine().dialect
|
||||
for col in table.columns:
|
||||
try:
|
||||
datatype = "{}".format(col.type).upper()
|
||||
datatype = "{}".format(col.type.compile(dialect=db_dialect)).upper()
|
||||
except Exception as e:
|
||||
datatype = "UNKNOWN"
|
||||
logging.error(
|
||||
|
|
|
|||
Loading…
Reference in New Issue