go-gorm/postgres

AlterColumn fieldColumnType空指针

zhgqiang opened this issue · 0 comments

Your Question

image
columnTypes, _ = m.DB.Migrator().ColumnTypes(value)
查询数据的时候columnTypes为空数组,fieldColumnType.DatabaseTypeName()报空指针
如果分布式情况,多连接操作表,很容易发生错误

The document you expected this should be explained

Expected answer