add log
This commit is contained in:
parent
ffecb8f764
commit
8b1f56b77f
@ -1,6 +1,8 @@
|
|||||||
package tests
|
package tests
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
"gorm.io/gorm/logger"
|
"gorm.io/gorm/logger"
|
||||||
@ -37,6 +39,7 @@ func (DummyDialector) QuoteTo(writer clause.Writer, str string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (DummyDialector) Explain(sql string, vars ...interface{}) string {
|
func (DummyDialector) Explain(sql string, vars ...interface{}) string {
|
||||||
|
log.Println("WTF", `"`)
|
||||||
return logger.ExplainSQL(sql, nil, `"`, vars...)
|
return logger.ExplainSQL(sql, nil, `"`, vars...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user