mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 12:17:53 +08:00
add test case
This commit is contained in:
parent
1725d247ae
commit
656fb99b6a
@ -1083,11 +1083,6 @@ func Test_Model_OrderBy(t *testing.T) {
|
||||
t.Assert(len(result), TableSize)
|
||||
t.Assert(result[0]["nickname"].String(), fmt.Sprintf("name_%d", TableSize))
|
||||
})
|
||||
}
|
||||
|
||||
func Test_Model_OrderBy_Null(t *testing.T) {
|
||||
table := createInitTable()
|
||||
defer dropTable(table)
|
||||
|
||||
gtest.C(t, func(t *gtest.T) {
|
||||
result, err := db.Model(table).Order("NULL").All()
|
||||
|
Loading…
Reference in New Issue
Block a user