1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 01:00:55 +00:00

orm.rawPrepare support FlatParams

This commit is contained in:
jianzhiyao 2020-07-26 19:40:13 +08:00
parent 93eb7c6b83
commit 16d71893cd

View File

@ -32,7 +32,8 @@ func (o *rawPrepare) Exec(args ...interface{}) (sql.Result, error) {
if o.closed { if o.closed {
return nil, ErrStmtClosed 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 { func (o *rawPrepare) Close() error {