mirror of
https://github.com/astaxie/beego.git
synced 2025-06-10 16:40:40 +00:00
Merge pull request #4099 from jianzhiyao/fix_3869
orm.rawPrepare support FlatParams
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user