Merge pull request #4032 from jianzhiyao/develop

fix strings.Repeat panic
This commit is contained in:
Ming Deng 2020-06-26 17:51:47 +08:00 committed by GitHub
commit 6b6a0e8a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ func (d *dbBase) InsertValue(q dbQuerier, mi *modelInfo, isMulti bool, names []s
multi := len(values) / len(names)
if isMulti {
if isMulti && multi > 1 {
qmarks = strings.Repeat(qmarks+"), (", multi-1) + qmarks
}