You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
actions_runner_ephemeral_deletion_test.go:76:
Error Trace: /home/runner/work/gitea/gitea/tests/integration/actions_runner_ephemeral_deletion_test.go:76
Error: Received unexpected error:
unable to remove user user2[2] from org private_org35[35]. Error: GetUserRepositories [2]: mssql: The number of rows provided for a FETCH clause must be greater then zero.
* mssql does not support fetching 0 repositories
* remove paging by NumRepos that might be 0
* extend admin api test to purge user 2
Fixesgo-gitea#34448
---------
Co-authored-by: wxiaoguang <[email protected]>
Backport #34449 by @ChristopherHX
* mssql does not support fetching 0 repositories
* remove paging by NumRepos that might be 0
* extend admin api test to purge user 2
Fixes#34448
Co-authored-by: ChristopherHX <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
Description
user_service.DeleteUser(t.Context(), user, true)
fails on mssql for userid 2 in testdataDue to NumRepos being 0 for one org this user belongs to.
https://github.com/go-gitea/gitea/blob/7a097138deeb0289c1d52c942eb1b1dfe20d1cda/services/org/user.go#L67-L68
Not a problem on any other database
Gitea Version
1.24-rc0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
1.39.5
Operating System
macOS
How are you running Gitea?
in test environment
Database
MSSQL
The text was updated successfully, but these errors were encountered: