summaryrefslogtreecommitdiffstats
path: root/models/db
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-06-05 03:18:50 +0800
committerGitHub <noreply@github.com>2022-06-04 20:18:50 +0100
commit12c742f8dc25e4148c44d1265d119c35f161bf74 (patch)
tree0c35f1de4cf7bdea1dfc8b03468f3616d0c82796 /models/db
parent449ea6005fb613212102126ff267f5c16f7c40b8 (diff)
downloadgitea-12c742f8dc25e4148c44d1265d119c35f161bf74.tar.gz
gitea-12c742f8dc25e4148c44d1265d119c35f161bf74.zip
Fix order by parameter (#19849)
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 <art27@cantab.net>
Diffstat (limited to 'models/db')
-rwxr-xr-xmodels/db/engine.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/models/db/engine.go b/models/db/engine.go
index 9f38af3c67..23eb59dcf5 100755
--- a/models/db/engine.go
+++ b/models/db/engine.go
@@ -41,12 +41,11 @@ type Engine interface {
Delete(...interface{}) (int64, error)
Exec(...interface{}) (sql.Result, error)
Find(interface{}, ...interface{}) error
- Get(interface{}) (bool, error)
+ Get(beans ...interface{}) (bool, error)
ID(interface{}) *xorm.Session
In(string, ...interface{}) *xorm.Session
Incr(column string, arg ...interface{}) *xorm.Session
Insert(...interface{}) (int64, error)
- InsertOne(interface{}) (int64, error)
Iterate(interface{}, xorm.IterFunc) error
Join(joinOperator string, tablename interface{}, condition string, args ...interface{}) *xorm.Session
SQL(interface{}, ...interface{}) *xorm.Session
@@ -59,7 +58,7 @@ type Engine interface {
Sync2(...interface{}) error
Select(string) *xorm.Session
NotIn(string, ...interface{}) *xorm.Session
- OrderBy(string) *xorm.Session
+ OrderBy(interface{}, ...interface{}) *xorm.Session
Exist(...interface{}) (bool, error)
Distinct(...string) *xorm.Session
Query(...interface{}) ([]map[string][]byte, error)