Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlterColumn fieldColumnType空指针 #231

Open
zhgqiang opened this issue Dec 12, 2023 · 0 comments
Open

AlterColumn fieldColumnType空指针 #231

zhgqiang opened this issue Dec 12, 2023 · 0 comments
Assignees

Comments

@zhgqiang
Copy link

Your Question

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

The document you expected this should be explained

Expected answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants