Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove whereBuilder #5

Open
yurishkuro opened this issue Jan 21, 2021 · 0 comments
Open

Remove whereBuilder #5

yurishkuro opened this issue Jan 21, 2021 · 0 comments

Comments

@yurishkuro
Copy link

I was browsing the code and noticed this stuct. It does not seem to be used, so I recommend removing it because it is vulnerable to SQL injection:

type whereBuilder struct {
where string
params []interface{}
}
func (r *whereBuilder) andWhere(param interface{}, where string) {
if len(r.where) > 0 {
r.where += " AND "
}
r.where += where
r.params = append(r.params, param)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant