Skip to content

Commit

Permalink
Merge pull request #21 from go-gorm/lzq
Browse files Browse the repository at this point in the history
feat: remove verbose params
  • Loading branch information
idersec authored Aug 7, 2021
2 parents 7646027 + 931c397 commit 5c71561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/check/checkinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ func (f *InterfaceMethod) methodParams(param string, s Status) (result slice, er
switch s {
case DATA:
str = fmt.Sprintf("\"@%s\"", param)
f.SqlData = append(f.SqlData, param)
case VARIABLE:
if p.Type != "string" {
err = fmt.Errorf("variable name must be string :%s type is %s", param, p.Type)
}
str = fmt.Sprintf("%s.Quote(%s)", f.S, param)
}
f.SqlData = append(f.SqlData, param)
result = slice{
Type: s,
Value: str,
Expand Down

0 comments on commit 5c71561

Please sign in to comment.