-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix dump command #6385
Fix dump command #6385
Conversation
Signed-off-by: Kerie <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #6385 +/- ##
==========================================
- Coverage 38.85% 38.84% -0.02%
==========================================
Files 365 365
Lines 51360 51360
==========================================
- Hits 19957 19951 -6
- Misses 28530 28537 +7
+ Partials 2873 2872 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the too quick L-GTM.
Strangely, the xorm docs say If struct or pointer of struct has TableName() string method, the return value will be the struct’s table name.
What are the impact on the gitea database? Does the web command use the good tablename ? Or does this PR will also change it ? In this case it will need a migration. If not we should find why the dump command don't use it like the web command.
I think @sapk is right. This PR will not work. I will send another PR to fix that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't work
Thank you for your quick response. The new PR is awesome, and I will close this one. |
@kerie Anyway, thank you for your help! |
Fix #6310
The
TableName()
method defined on pointer receivers is not invoked by Xorm. Change method receivers to non-pointer receivers.