fix tests

This commit is contained in:
Lunny Xiao 2019-07-29 23:45:59 +08:00
parent 678d6b93f9
commit 08c4780157
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func TestGetVar(t *testing.T) {
assert.Equal(t, 28, age)
var ageMax int
has, err = testEngine.SQL("SELECT max(age) FROM `get_var` WHERE id = ?", data.Id).Get(&ageMax)
has, err = testEngine.SQL("SELECT max(age) FROM `get_var` WHERE `id` = ?", data.Id).Get(&ageMax)
assert.NoError(t, err)
assert.Equal(t, true, has)
assert.Equal(t, 28, ageMax)