Merge pull request #32 from akuseru/master

fix parameter ordering for mysql / postgresql
This commit is contained in:
Jinzhu 2013-12-27 16:03:42 -08:00
commit 09464f1a17
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 {