Skip to content

Commit 4efb003

Browse files
committed
修复测试用例
1 parent 8adb939 commit 4efb003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlbuilder/builder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestQueryBuild(t *testing.T) {
1212
q := sqlbuilder.NewQuery("SELECT * FROM t")
1313
qstmt, args := q.Where("t.a = ? AND t.c = ? AND t.d LIKE ?", "one", "two", "three").GroupBy("t.group").Having("MAX(t.salary) > ?", 10).Order("t.create_at").Desc().Limit(0, 20).Build()
1414
should.Equal(qstmt, "SELECT * FROM t WHERE t.a = ? AND t.c = ? AND t.d LIKE ? GROUP BY t.group HAVING MAX(t.salary) > ? ORDER BY t.create_at DESC LIMIT ?,? ;")
15-
should.Equal(args, []interface{}{"one", "two", "three", int64(0), uint(20)})
15+
should.Equal(args, []interface{}{"one", "two", "three", 10, int64(0), uint(20)})
1616
should.Equal(q.WhereStmt(), []string{"t.a = ? AND t.c = ? AND t.d LIKE ?"})
1717
should.Equal(q.WhereArgs(), []interface{}{"one", "two", "three"})
1818

0 commit comments

Comments
 (0)