Skip to content

Commit

Permalink
fix: GroutConcat should be GroupConcat
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainNEO authored and tr1v3r committed Dec 28, 2021
1 parent 25625e4 commit 7512db2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion field/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (e expr) Null() AssignExpr {
return e.setE(clause.Eq{Column: e.col.Name, Value: nil})
}

func (e expr) GroutConcat() Expr {
func (e expr) GroupConcat() Expr {
return e.setE(clause.Expr{SQL: "GROUP_CONCAT(?)", Vars: []interface{}{e.RawExpr()}})
}

Expand Down
2 changes: 1 addition & 1 deletion field/external_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestExpr_Build(t *testing.T) {
Result: "`id` IS NOT NULL",
},
{
Expr: field.NewField("", "id").GroutConcat(),
Expr: field.NewField("", "id").GroupConcat(),
Result: "GROUP_CONCAT(`id`)",
},
// ======================== integer ========================
Expand Down

0 comments on commit 7512db2

Please sign in to comment.