fix parameter ordering for mysql / postgresql

where … group … having … order .. limit .. offset
This commit is contained in:
Adam Smith 2013-12-27 06:25:32 -06:00
parent cc4fcbe557
commit 895812eae3
1 changed files with 1 additions and 1 deletions

2
do.go
View File

@ -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 {