Skip to content

Commit 8adb939

Browse files
committed
添加having参数
1 parent 21d3cb6 commit 8adb939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlbuilder/builder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ func (q *Query) Build() (stmt string, args []interface{}) {
122122
stmt = q.query + " " + q.whereBuild() + q.groupBy + q.havingBuild() + q.order + q.limitStmt + ";"
123123

124124
args = append(args, q.whereArgs...)
125+
args = append(args, q.havingArgs...)
125126
args = append(args, q.limitArgs...)
126127
return
127128
}

0 commit comments

Comments
 (0)