Root Cause:
The tidb backend FetchRemoteTableModels implementation is not accurate, it only set Flag in The FieldType and ignore other fields. So when run tidb backend with strict sql-mode, the table.CastValue panic because the fieldtype.Tp is 0(undefined).
Bug Report
Please answer these questions before submitting your issue. Thanks!
panic backtrace:
Root Cause: The tidb backend
FetchRemoteTableModels
implementation is not accurate, it only setFlag
in TheFieldType
and ignore other fields. So when run tidb backend with strict sql-mode, thetable.CastValue
panic because the fieldtype.Tp is 0(undefined).