diff --git a/orm/orm_test.go b/orm/orm_test.go index 18e48288..b18a7082 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -822,13 +822,16 @@ func TestOperators(t *testing.T) { throwFail(t, err) throwFail(t, AssertIs(num, 1)) - num, err = qs.Filter("user_name__strictexact", "Slene").Count() - throwFail(t, err) - throwFail(t, AssertIs(num, 0)) + if dORM.Driver().Name() == "mysql" { + // Now only mysql support `strictexact` + num, err = qs.Filter("user_name__strictexact", "Slene").Count() + throwFail(t, err) + throwFail(t, AssertIs(num, 0)) - num, err = qs.Filter("user_name__strictexact", "slene").Count() - throwFail(t, err) - throwFail(t, AssertIs(num, 1)) + num, err = qs.Filter("user_name__strictexact", "slene").Count() + throwFail(t, err) + throwFail(t, AssertIs(num, 1)) + } num, err = qs.Filter("user_name__contains", "e").Count() throwFail(t, err)