Fix
This commit is contained in:
parent
349424e533
commit
4b7d45990e
@ -1,7 +1,6 @@
|
|||||||
package gorm
|
package gorm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -12,10 +11,8 @@ func (scope *Scope) TableAndQuery() (string, string) {
|
|||||||
//t, q := scope.TableName(), qs[3].(string)
|
//t, q := scope.TableName(), qs[3].(string)
|
||||||
|
|
||||||
if scope.SQL == "" {
|
if scope.SQL == "" {
|
||||||
fmt.Println("### HIT ###")
|
|
||||||
scope.prepareQuerySQL()
|
scope.prepareQuerySQL()
|
||||||
}
|
}
|
||||||
fmt.Println("#####", scope.SQL)
|
|
||||||
t, q := scope.TableName(), scope.SQL
|
t, q := scope.TableName(), scope.SQL
|
||||||
if t == "" {
|
if t == "" {
|
||||||
qsplit := strings.Fields(strings.ToLower(q))
|
qsplit := strings.Fields(strings.ToLower(q))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user