Fix order by clause do not support empty string #2422
No reviewers
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2422
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "leiwingqueen/xorm:order_by_empty"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
what happen
xorm 1.3.2 support order by clause support empty string and v1.3.8 throw an error to the caller. I want xorm support this feature in the future.
it will throw an error "order by string is empty" when I invoke the function OrderBy("").
We need this feature in the case that user can change order clause and empty string means no need to order the rows
expectation
testEngine.Where("
age
=1 ").OrderBy("") return successPull request closed