1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-14 23:00:54 +00:00

orm_test:use predefined variable to check db driver

This commit is contained in:
CadenGuo 2020-08-31 15:47:37 +00:00
parent ff53e12191
commit 91410be722
No known key found for this signature in database
GPG Key ID: 047A2EAA8F2CFF93

View File

@ -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)