diff --git a/gorm_test.go b/gorm_test.go index 9275c7a0..f726314d 100644 --- a/gorm_test.go +++ b/gorm_test.go @@ -237,6 +237,12 @@ func TestComplexWhere(t *testing.T) { t.Errorf("Should only found 3 users's birthday >= t2", len(users)) } + users = []User{} + db.Where("birthday > ?", "2002-10-10").Find(&users) + if len(users) != 3 { + t.Errorf("Should only found 3 users's birthday >= t2", len(users)) + } + users = []User{} db.Where("birthday >= ?", t1).Where("birthday < ?", t2).Find(&users) if len(users) != 1 {