mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 20:40:55 +00:00
orm_test:use predefined variable to check db driver
This commit is contained in:
parent
ff53e12191
commit
91410be722
@ -822,7 +822,7 @@ func TestOperators(t *testing.T) {
|
|||||||
throwFail(t, err)
|
throwFail(t, err)
|
||||||
throwFail(t, AssertIs(num, 1))
|
throwFail(t, AssertIs(num, 1))
|
||||||
|
|
||||||
if dORM.Driver().Name() == "mysql" {
|
if IsMysql {
|
||||||
// Now only mysql support `strictexact`
|
// Now only mysql support `strictexact`
|
||||||
num, err = qs.Filter("user_name__strictexact", "Slene").Count()
|
num, err = qs.Filter("user_name__strictexact", "Slene").Count()
|
||||||
throwFail(t, err)
|
throwFail(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user