comment and unit testing case update for gdb

This commit is contained in:
John 2019-11-28 23:51:05 +08:00
parent 0cfdf60de5
commit c7b0763ab0
2 changed files with 2 additions and 4 deletions

View File

@ -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 {

View File

@ -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)