1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-24 06:10:19 +00:00

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

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
}