type TableS struct {
Name string `gorm:"column:Name"`
Engine string `gorm:"column:Engine"`
Version string `gorm:"column:Version"`
RowFormat string `gorm:"column:Row_format"`
Rows string `gorm:"column:Rows"`
AvgRowLength string `gorm:"column:Avg_row_length"`
DataLength string `gorm:"column:Data_length"`
MaxDataLength string `gorm:"column:Max_data_length"`
IndexLength string `gorm:"column:Index_length"`
DataFree string `gorm:"column:Data_free"`
AutoIncrement string `gorm:"column:Auto_increment"`
CreateTime string `gorm:"column:Create_time"`
UpdateTime interface{} `gorm:"column:Update_time"`
CheckTime interface{} `gorm:"column:Check_time"`
Collation string `gorm:"column:Collation"`
Checksum interface{} `gorm:"column:Checksum"`
CreateOptions string `gorm:"column:Create_options"`
Comment string `gorm:"column:Comment"`
MaxIndexLength string `gorm:"column:Max_index_length"`
Temporary string `gorm:"column:Temporary"`
}
var tables = make([]TableS , 0)
if err = gormdb.Raw("show table status").Scan(&tables).Error; err != nil {
return
}
[error] unsupported data type: 0xc00020c6d
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: li-jin-gou
It appears that one of the fields is a pointer, but the actual type is not the same as defined.