mirror of https://github.com/go-gorm/gorm.git
fix parameter ordering for mysql / postgresql
where … group … having … order .. limit .. offset
This commit is contained in:
parent
cc4fcbe557
commit
895812eae3
2
do.go
2
do.go
|
@ -700,7 +700,7 @@ func (s *Do) joinsSql() string {
|
|||
}
|
||||
|
||||
func (s *Do) combinedSql() string {
|
||||
return s.whereSql() + s.orderSql() + s.limitSql() + s.offsetSql() + s.groupSql() + s.havingSql()
|
||||
return s.whereSql() + s.groupSql() + s.havingSql() + s.orderSql() + s.limitSql() + s.offsetSql()
|
||||
}
|
||||
|
||||
func (s *Do) createTable() *Do {
|
||||
|
|
Loading…
Reference in New Issue