Skip to content

Commit

Permalink
Combine args
Browse files Browse the repository at this point in the history
  • Loading branch information
OrlovEvgeny committed Aug 24, 2018
1 parent ebfef94 commit fbfb5df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/*
.DS_Store
2 changes: 1 addition & 1 deletion condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Or(cond ...Builder) Builder {
})
}

func buildCmp(d Dialect, buf Buffer, pred string, column string, value interface{}) error {
func buildCmp(d Dialect, buf Buffer, pred, column string, value interface{}) error {
buf.WriteString(d.QuoteIdent(column))
buf.WriteString(" ")
buf.WriteString(pred)
Expand Down
2 changes: 1 addition & 1 deletion join.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const (
full
)

func join(t joinType, table interface{}, on interface{}) Builder {
func join(t joinType, table, on interface{}) Builder {
return BuildFunc(func(d Dialect, buf Buffer) error {
buf.WriteString(" ")
switch t {
Expand Down

0 comments on commit fbfb5df

Please sign in to comment.