mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
fix: fixed some issues
This commit is contained in:
@@ -54,7 +54,7 @@ func (md *MssqlDialect) CopyTable(copy *dbi.DbCopyTable) error {
|
||||
hasIdentity := false
|
||||
for _, v := range columns {
|
||||
columnNames = append(columnNames, fmt.Sprintf("[%s]", v.ColumnName))
|
||||
if v.IsIdentity {
|
||||
if v.AutoIncrement {
|
||||
hasIdentity = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user