mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-08 05:45:37 +08:00
fix: fixed some issues
This commit is contained in:
@@ -105,7 +105,7 @@ func (md *MysqlMetadata) GetColumns(tableNames ...string) ([]dbi.Column, error)
|
||||
ColumnComment: cast.ToString(re["columnComment"]),
|
||||
Nullable: cast.ToString(re["nullable"]) == "YES",
|
||||
IsPrimaryKey: cast.ToInt(re["isPrimaryKey"]) == 1,
|
||||
IsIdentity: cast.ToInt(re["isIdentity"]) == 1,
|
||||
AutoIncrement: cast.ToInt(re["autoIncrement"]) == 1,
|
||||
ColumnDefault: cast.ToString(re["columnDefault"]),
|
||||
CharMaxLength: cast.ToInt(re["charMaxLength"]),
|
||||
NumPrecision: cast.ToInt(re["numPrecision"]),
|
||||
|
||||
Reference in New Issue
Block a user