mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-21 22:42:00 +00:00
SQL 检查认时间列时带上 ENUM 的取值列表:PG 里类型名带 DATE 的枚举列,剖析不认是日期列、SQL 检查却认,两边对不上
This commit is contained in:
@@ -326,7 +326,7 @@ class _Table:
|
||||
「唯一日期列」和这里认的时间列对得上)。"""
|
||||
meta = next((c for c in self.meta.get("columns") or []
|
||||
if isinstance(c, Mapping) and str(c.get("name")).lower() == column.lower()), None)
|
||||
return catalog.is_date_column(column, (meta or {}).get("type"))
|
||||
return catalog.is_date_column(column, (meta or {}).get("type"), enum_values=(meta or {}).get("enum_values"))
|
||||
|
||||
|
||||
#: 一列解析到的位置:(表, 列的真名)
|
||||
|
||||
Reference in New Issue
Block a user