From 349424e53305bfdc7632756f58c56331d8498e3f Mon Sep 17 00:00:00 2001 From: Raul-Mircea Date: Mon, 27 Jan 2020 14:53:46 +0100 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 cc1299be..b6214e11 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 (db *DB) TableAndQuery() (string, string) { - scope := db.NewScope(db) +func (scope *Scope) TableAndQuery() (string, string) { scope.InstanceSet("skip_bindvar", true) //qs := LogFormatter("sql", "q", time.Duration(1), scope.SQL, scope.SQLVars, int64(1)) //t, q := scope.TableName(), qs[3].(string)