Reviewed-on: https://gitea.com/xorm/xorm/pulls/2342 (cherry picked from commit 0f085408af)
0f085408af