forgejo/models/db
Jason Song 2c4e85421e
Fix misuse of TxContext (#30061)
Help #29999, or its tests cannot pass.

Also, add some comments to clarify the usage of `TxContext`.

I don't check all usages of `TxContext` because there are too many
(almost 140+). It's a better idea to replace them with `WithTx` instead
of checking them one by one. However, that may be another refactoring
PR.

(cherry picked from commit c6c4d66004c70b24abc8048b39b660b8361a0395)
2024-03-30 07:17:29 +01:00
..
install
paginator
collation.go Partially enable MSSQL case-sensitive collation support (#29238) 2024-03-11 23:36:59 +07:00
common.go
consistency.go
context.go Fix misuse of TxContext (#30061) 2024-03-30 07:17:29 +01:00
context_committer_test.go
context_test.go
convert.go
engine.go feat(xorm): add max idle time setting for db connections (#2418) 2024-02-21 12:17:16 +00:00
engine_test.go [TESTS] add log.Level to test.NewLogChecker 2024-02-05 16:54:44 +01:00
error.go
index.go
index_test.go
iterate.go
iterate_test.go
list.go
list_test.go
log.go
main_test.go
name.go
search.go
sequence.go
sql_postgres_with_schema.go