mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:00:54 +00:00
commit
d7fe5ef435
@ -117,7 +117,7 @@ o.Begin()
|
||||
...
|
||||
user := User{Name: "slene"}
|
||||
id, err := o.Insert(&user)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
o.Commit()
|
||||
} else {
|
||||
o.Rollback()
|
||||
|
Loading…
Reference in New Issue
Block a user