Fix
This commit is contained in:
parent
7a508bc6a6
commit
349424e533
@ -6,8 +6,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// TableAndQuery returns the table name and the query already formatted as a string
|
// TableAndQuery returns the table name and the query already formatted as a string
|
||||||
func (db *DB) TableAndQuery() (string, string) {
|
func (scope *Scope) TableAndQuery() (string, string) {
|
||||||
scope := db.NewScope(db)
|
|
||||||
scope.InstanceSet("skip_bindvar", true)
|
scope.InstanceSet("skip_bindvar", true)
|
||||||
//qs := LogFormatter("sql", "q", time.Duration(1), scope.SQL, scope.SQLVars, int64(1))
|
//qs := LogFormatter("sql", "q", time.Duration(1), scope.SQL, scope.SQLVars, int64(1))
|
||||||
//t, q := scope.TableName(), qs[3].(string)
|
//t, q := scope.TableName(), qs[3].(string)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user