From 895812eae3276e77eaa79c73f5f53b94703c7a61 Mon Sep 17 00:00:00 2001 From: Adam Smith Date: Fri, 27 Dec 2013 06:25:32 -0600 Subject: [PATCH] fix parameter ordering for mysql / postgresql MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit where … group … having … order .. limit .. offset --- do.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/do.go b/do.go index 5c1f1886..753c77c0 100644 --- a/do.go +++ b/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 {