go-gorm / postgres

GORM PostgreSQL driver
MIT License
234 stars 123 forks source link

AlterColumn fieldColumnType空指针 #231

Open zhgqiang opened 10 months ago

zhgqiang commented 10 months ago

Your Question

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

The document you expected this should be explained

Expected answer