Skip to content

Conversation

@6543
Copy link
Member

@6543 6543 commented Jun 2, 2020

since I dont think xorm will be updated in v1.11 branch - fix it with an workaround

fix #11734

@jolheiser jolheiser added this to the 1.11.6 milestone Jun 2, 2020
@techknowlogick techknowlogick modified the milestones: 1.11.6, 1.11.7 Jun 3, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jun 8, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 9, 2020
@techknowlogick techknowlogick merged commit 5d4251e into go-gitea:release/v1.11 Jun 9, 2020
@6543 6543 deleted the workaround_11734_v111 branch June 9, 2020 10:19
@ghost
Copy link

ghost commented Jun 16, 2020

This PR fixes the panic, but creates a new issue "Error: ambiguous column name: id".
For details see @Dessa and my comment in #11734

Copy link
Member

@lunny lunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug resulted in all places which invoke DeleteOrphanedObjects.

From("`"+subject+"`").
Join("LEFT", "`"+refobject+"`", joinCond).
Where(builder.IsNull{"`" + refobject + "`.id"})).
Delete("`" + subject + "`")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not supported by xorm. Delete needs an point but not a string.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants