Fix postgres test
This commit is contained in:
parent
13a779ef95
commit
4f6dd437c4
|
@ -63,7 +63,7 @@ func TestSQLCount(t *testing.T) {
|
||||||
|
|
||||||
assertSync(t, new(UserinfoCount2), new(UserinfoBooks))
|
assertSync(t, new(UserinfoCount2), new(UserinfoBooks))
|
||||||
|
|
||||||
total, err := testEngine.SQL("SELECT count(`id`) FROM `" + testEngine.TableName("userinfo_count2", true) + "`").
|
total, err := testEngine.SQL("SELECT count(`id`) FROM " + testEngine.Quote(testEngine.TableName("userinfo_count2", true))).
|
||||||
Count()
|
Count()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.EqualValues(t, 0, total)
|
assert.EqualValues(t, 0, total)
|
||||||
|
|
Loading…
Reference in New Issue