Fix
This commit is contained in:
parent
91d8421ca7
commit
7f7826a867
@ -6,11 +6,15 @@ 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 (scope Scope) TableAndQuery() (string, string) {
|
func (scope *Scope) TableAndQuery() (string, string) {
|
||||||
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)
|
||||||
|
|
||||||
|
if scope.SQL == "" {
|
||||||
|
fmt.Println("### HIT ###")
|
||||||
|
scope.prepareQuerySQL()
|
||||||
|
}
|
||||||
fmt.Println("#####", scope.SQL)
|
fmt.Println("#####", scope.SQL)
|
||||||
t, q := scope.TableName(), scope.SQL
|
t, q := scope.TableName(), scope.SQL
|
||||||
if t == "" {
|
if t == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user