Fix to add session.statement.IsForUpdate check in Session.queryRows() #2064

Merged
lunny merged 4 commits from rennnosuke/xorm:fix/exec_for_update_on_master into master 2021-11-24 02:29:40 +00:00

4 Commits

Author SHA1 Message Date
RenKanai
3ecf64a7e8 Merge branch 'master' into fix/exec_for_update_on_master
All checks were successful
continuous-integration/drone/pr Build is passing
2021-11-23 17:03:25 +08:00
fe90482327 Merge branch 'master' into fix/exec_for_update_on_master
All checks were successful
continuous-integration/drone/pr Build is passing
2021-10-29 17:31:31 +08:00
RenKanai
3996bd66ed Merge branch 'master' into fix/exec_for_update_on_master
Some checks failed
continuous-integration/drone/pr Build is failing
2021-10-29 17:16:04 +09:00
rennnosuke
e03ecdfeee fix to add session.statement.IsForUpdate check in Session.queryRows()
Some checks failed
continuous-integration/drone/pr Build is failing
# Issue
The 'for-update' query is executed to slave DB node.  


# Example

```go
s := engineGroup.NewSession(); // create session from EngineGroup.
...

s.ForUpdate();

type User struct { ... };
has, err := s.Get(&user); // executed to slave DB node.
...
```
2021-10-28 16:38:22 +08:00