From 91410be72279e01e4acd82a369663cf714130f28 Mon Sep 17 00:00:00 2001 From: CadenGuo <411189077@qq.com> Date: Mon, 31 Aug 2020 15:47:37 +0000 Subject: [PATCH] orm_test:use predefined variable to check db driver --- orm/orm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/orm_test.go b/orm/orm_test.go index b18a7082..93668235 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -822,7 +822,7 @@ func TestOperators(t *testing.T) { throwFail(t, err) throwFail(t, AssertIs(num, 1)) - if dORM.Driver().Name() == "mysql" { + if IsMysql { // Now only mysql support `strictexact` num, err = qs.Filter("user_name__strictexact", "Slene").Count() throwFail(t, err)