-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Fix order by #19821
Fix order by #19821
Conversation
Ugh this appears to have broken many things. I'm concerned that the requirement to use .SQL(...) and the weird dialect dance makes this a bit complex and certainly error prone. I think that we need to think again about the xorm interface - certainly the session.OrderBy(...) function needs to be changed to take interface{} pairs eg. from: func (session *Session) OrderBy(order string) *Session { ... } to: func (session *Session) OrderBy(order interface{}, args ...interface{}) *Session { ... } Then we need to think a bit more about how builders could pass down the ordering - but I suspect that keeping these separate from the condition would still be right. |
Upgrade builder to v0.3.11 Upgrade xorm to v1.3.1 and fixed some hidden bugs. Replace #19821 Replace #19834 Included #19850 Co-authored-by: zeripath <[email protected]>
Upgrade builder to v0.3.11 Upgrade xorm to v1.3.1 and fixed some hidden bugs. Replace go-gitea#19821 Replace go-gitea#19834 Included go-gitea#19850 Co-authored-by: zeripath <[email protected]>
No description provided.