This commit is contained in:
Raul-Mircea 2020-01-27 15:08:34 +01:00
parent 349424e533
commit 4b7d45990e

View File

@ -1,7 +1,6 @@
package gorm
import (
"fmt"
"strings"
)
@ -12,10 +11,8 @@ func (scope *Scope) TableAndQuery() (string, string) {
//t, q := scope.TableName(), qs[3].(string)
if scope.SQL == "" {
fmt.Println("### HIT ###")
scope.prepareQuerySQL()
}
fmt.Println("#####", scope.SQL)
t, q := scope.TableName(), scope.SQL
if t == "" {
qsplit := strings.Fields(strings.ToLower(q))