Merge pull request #2 from Vivino/fix

Just a small fix.
This commit is contained in:
Raul-Mircea Crivineanu 2019-11-14 16:23:31 +02:00 committed by GitHub
commit f299fe10bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,7 @@ import (
)
// TableAndQuery returns the table name and the query already formatted as a string
func (s *DB) TableAndQuery() (string, string) {
scope := s.NewScope(s.Value)
func (scope *Scope) TableAndQuery() (string, string) {
scope.InstanceSet("skip_bindvar", true)
scope.prepareQuerySQL()