1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 14:30:54 +00:00

Merge pull request #4099 from jianzhiyao/fix_3869

orm.rawPrepare support FlatParams
This commit is contained in:
Ming Deng 2020-07-26 21:01:39 +08:00 committed by GitHub
commit b9f9fcca5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,8 @@ func (o *rawPrepare) Exec(args ...interface{}) (sql.Result, error) {
if o.closed {
return nil, ErrStmtClosed
}
return o.stmt.Exec(args...)
flatParams := getFlatParams(nil, args, o.rs.orm.alias.TZ)
return o.stmt.Exec(flatParams...)
}
func (o *rawPrepare) Close() error {