mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
fix: datetime value should be seconds in sqlite (#21113)
This commit is contained in:
@@ -110,7 +110,7 @@ class SqliteEngineSpec(BaseEngineSpec):
|
||||
) -> Optional[str]:
|
||||
tt = target_type.upper()
|
||||
if tt in (utils.TemporalType.TEXT, utils.TemporalType.DATETIME):
|
||||
return f"""'{dttm.isoformat(sep=" ", timespec="microseconds")}'"""
|
||||
return f"""'{dttm.isoformat(sep=" ", timespec="seconds")}'"""
|
||||
return None
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user