This commit is contained in:
John Guo
2023-10-26 10:04:21 +08:00
committed by GitHub
parent 2433b2ce99
commit 3ea61d084e
3 changed files with 71 additions and 2 deletions

View File

@ -451,7 +451,6 @@ func (c *Core) DoInsert(ctx context.Context, link Link, table string, list List,
return nil, err
}
tmpKeysInSequenceStr = gstr.Join(keys, ",")
if !keyListMap.Contains(tmpKeysInSequenceStr) {
keyListMap.Set(tmpKeysInSequenceStr, make(List, 0))
}
@ -478,8 +477,9 @@ func (c *Core) DoInsert(ctx context.Context, link Link, table string, list List,
sqlResult.Affected += rowsAffected
return true
})
return &sqlResult, nil
return &sqlResult, err
}
// Prepare the batch result pointer.
var (
charL, charR = c.db.GetChars()