Skip to content

Commit

Permalink
orm_test:use predefined variable to check db driver
Browse files Browse the repository at this point in the history
  • Loading branch information
CadenGuo committed Aug 31, 2020
1 parent ff53e12 commit 91410be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orm/orm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91410be

Please sign in to comment.