mirror of https://github.com/go-gorm/gorm.git
fix order case (#3350)
This commit is contained in:
parent
e98a4a3a4e
commit
e6f4b711a7
|
@ -198,7 +198,7 @@ func (db *DB) Having(query interface{}, args ...interface{}) (tx *DB) {
|
|||
|
||||
// Order specify order when retrieve records from database
|
||||
// db.Order("name DESC")
|
||||
// db.Order(gorm.Expr("name = ? DESC", "first")) // sql expression
|
||||
// db.Order(clause.OrderByColumn{Column: clause.Column{Name: "name"}, Desc: true})
|
||||
func (db *DB) Order(value interface{}) (tx *DB) {
|
||||
tx = db.getInstance()
|
||||
|
||||
|
|
Loading…
Reference in New Issue