Use a value receiver in TableAndQuery

This commit is contained in:
Adam Hasselbalch Hansen 2020-01-24 13:45:22 +01:00
parent f38071944f
commit 93734513ed

View File

@ -5,7 +5,7 @@ import (
)
// TableAndQuery returns the table name and the query already formatted as a string
func (scope *Scope) TableAndQuery() (string, string) {
func (scope Scope) TableAndQuery() (string, string) {
scope.InstanceSet("skip_bindvar", true)
scope.prepareQuerySQL()