Fix typo (#1748)
Fix typo Co-authored-by: Masataka Hisasue <masataka.hisasue@optim.co.jp> Reviewed-on: https://gitea.com/xorm/xorm/pulls/1748 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
fe3bc3851e
commit
4a6b8c29bf
|
@ -313,7 +313,7 @@ err := engine.Where(builder.NotIn("a", 1, 2).And(builder.In("b", "c", "d", "e"))
|
||||||
// SELECT id, name ... FROM user WHERE a NOT IN (?, ?) AND b IN (?, ?, ?)
|
// SELECT id, name ... FROM user WHERE a NOT IN (?, ?) AND b IN (?, ?, ?)
|
||||||
```
|
```
|
||||||
|
|
||||||
* Multiple operations in one go routine, no transation here but resue session memory
|
* Multiple operations in one go routine, no transaction here but resue session memory
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
session := engine.NewSession()
|
session := engine.NewSession()
|
||||||
|
@ -336,7 +336,7 @@ if _, err := session.Exec("delete from userinfo where username = ?", user2.Usern
|
||||||
return nil
|
return nil
|
||||||
```
|
```
|
||||||
|
|
||||||
* Transation should be on one go routine. There is transaction and resue session memory
|
* Transaction should be on one go routine. There is transaction and resue session memory
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
session := engine.NewSession()
|
session := engine.NewSession()
|
||||||
|
|
Loading…
Reference in New Issue