mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 04:07:47 +08:00
comment and unit testing case update for gdb
This commit is contained in:
parent
0cfdf60de5
commit
c7b0763ab0
@ -727,7 +727,8 @@ func (md *Model) checkAndRemoveCache() {
|
||||
}
|
||||
}
|
||||
|
||||
// 格式化当前输入参数,返回SQL条件语句(不带参数)
|
||||
// formatCondition formats where arguments of the model and returns a new condition sql and its arguments.
|
||||
// Note that this function does not change any of the attribute value of the mode.
|
||||
func (md *Model) formatCondition() (condition string, conditionArgs []interface{}) {
|
||||
var where string
|
||||
if len(md.whereHolder) > 0 {
|
||||
|
@ -315,9 +315,6 @@ func Test_Model_Safe(t *testing.T) {
|
||||
})
|
||||
|
||||
gtest.Case(t, func() {
|
||||
db.SetDebug(true)
|
||||
defer db.SetDebug(false)
|
||||
|
||||
table := createInitTable()
|
||||
defer dropTable(table)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user