Fix order by clause do not support empty string #2422

Closed
leiwingqueen wants to merge 20 commits from leiwingqueen/xorm:order_by_empty into v1
First-time contributor

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 success

# 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 success
leiwingqueen added 20 commits 2024-03-01 09:57:16 +00:00
Some refactors (#2348)
Reviewed-on: #2348
All checks were successful
test mysql8 / test mysql8 (pull_request) Successful in 2m50s
test postgres / test postgres (pull_request) Successful in 3m46s
test sqlite / unit test & test sqlite (pull_request) Successful in 3m40s
test cockroach / test cockroach (pull_request) Successful in 4m38s
test mssql / test mssql (pull_request) Successful in 4m57s
test mariadb / test mariadb (pull_request) Successful in 5m23s
test tidb / test tidb (pull_request) Successful in 3m20s
test mysql / test mysql (pull_request) Successful in 3m35s
8eeb1ef8ac
Remove cache features (#2347)
The cache feature is not used frequently but needs more time to maintain.
I think there are many machism to handle the cache out of ORM. So let's remove it.

Reviewed-on: #2347
42553b7477
Fix #2393 (#2395) (#2396)
Reviewed-on: #2395
Reviewed-on: #2396
3344b42b4b
Fix the issue of incorrect insertion of data in non UTC time zone zero for numeric types (#2359)
Fix the issue of incorrect insertion of data in non UTC time zone zero for numeric types

Co-authored-by: CyJay <cyjay@MacBook-Pro.lan>
Reviewed-on: #2359
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: CyJaySong <CyJaySong@gmail.com>
Co-committed-by: CyJaySong <CyJaySong@gmail.com>
7601625664
order by function support empty value
Some checks failed
test cockroach / test cockroach (pull_request) Has been cancelled
test mariadb / test mariadb (pull_request) Has been cancelled
test mssql / test mssql with collation (pull_request) Has been cancelled
test mssql / test mssql (pull_request) Has been cancelled
test mysql / test mysql (pull_request) Has been cancelled
test mysql8 / test mysql8 (pull_request) Has been cancelled
test postgres / test postgres (pull_request) Has been cancelled
test sqlite / unit test & test sqlite (pull_request) Has been cancelled
test tidb / test tidb (pull_request) Has been cancelled
954247036a
leiwingqueen closed this pull request 2024-03-01 10:13:29 +00:00
Some checks failed
test cockroach / test cockroach (pull_request) Has been cancelled
Required
Details
test mariadb / test mariadb (pull_request) Has been cancelled
Required
Details
test mssql / test mssql with collation (pull_request) Has been cancelled
Required
Details
test mssql / test mssql (pull_request) Has been cancelled
Required
Details
test mysql / test mysql (pull_request) Has been cancelled
Required
Details
test mysql8 / test mysql8 (pull_request) Has been cancelled
Required
Details
test postgres / test postgres (pull_request) Has been cancelled
Required
Details
test sqlite / unit test & test sqlite (pull_request) Has been cancelled
Required
Details
test tidb / test tidb (pull_request) Has been cancelled
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.