-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Bug caused by combining ORM's List method and garry #3607
Comments
你的所有代码我拿过来测试的结果却是 |
I took all your codes and tested them, but the result was |
我的orm和gf都是2.7.1的
而且我发现打印_liveHaveSignUp的结果中target_id存放的是内存地址,但是collection_id却不是
按理说不应该存放内存地址的 |
And I found that the target_id in the result of printing _liveHaveSignUp is the memory address, but the collection_id is not.
Logically speaking, memory addresses should not be stored. |
Go version
1.20.3
GoFrame version
2.7.1
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
collection(报名表单)表数据,其中target_id存放的是直播id
collection_user(用户报名记录)表数据
测试代码
如果把ORM的All()改为Scan,则结果是我想要的
What did you see happen?
What did you expect to see?
user_id:2,live_id:266,已报名
The text was updated successfully, but these errors were encountered: