-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop and crash in self-associations #4108
Comments
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the |
I would add this to playground but app is crashing and should be stopped forcefully, so it's not possible to just put a code into some test. |
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the |
WTF |
@jinzhu this is very serious problem, please reopen. And, personally, I don't think that forcefully closing absolutely all bugs (when "bug" was selected by reporter!!!) in 2 days when people don't have enough time, efforts or skills to do all this fancy magic passes is misleading, and will make quality of library much less than it could be. This is disrespectful to reporters. |
Fixed, thank you for your report. Sorry, rarely check those "type:missing reproduction steps" issues due to limited time, most of those kind issues usually are misusage, so the GitHub action really helped me to focus on high ROI issues. |
GORM Playground Link
This is not possible to represent via gorm playground.
Description
Imagine I want to add a friends of user via self assiciation:
When I'm adding a
friend
to auser
, it works. But when I'm trying to add auser
as a friend offriend
, so in reverse, this call falls into infinite loop.EXAMPLE
The text was updated successfully, but these errors were encountered: