From 7272b99bd2f34f56ddf0d1c9887a4cfa02efb934 Mon Sep 17 00:00:00 2001 From: Raul-Mircea Date: Thu, 14 Nov 2019 16:22:44 +0200 Subject: [PATCH] Fix --- table_and_query.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/table_and_query.go b/table_and_query.go index 8a5add28..2ea29cb5 100644 --- a/table_and_query.go +++ b/table_and_query.go @@ -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()