From 31247c577d322277961e4eab16dafdbebddce966 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Wed, 29 Jan 2014 08:55:45 +0800 Subject: [PATCH] update method CombinedConditionSql --- scope.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scope.go b/scope.go index fd100307..01c29515 100644 --- a/scope.go +++ b/scope.go @@ -236,8 +236,9 @@ func (scope *Scope) TableName() string { } } -func (s *Scope) CombinedConditionSql() string { - return s.joinsSql() + s.whereSql() + s.groupSql() + s.havingSql() + s.orderSql() + s.limitSql() + s.offsetSql() +func (scope *Scope) CombinedConditionSql() string { + return scope.joinsSql() + scope.whereSql() + scope.groupSql() + + scope.havingSql() + scope.orderSql() + scope.limitSql() + scope.offsetSql() } func (scope *Scope) SqlTagForField(field *Field) (tag string) {