fix index function output

修复mysql索引导出函数不准确问题。
This commit is contained in:
谢小军
2020-06-08 19:21:25 +08:00
parent bff23cddda
commit 3b9ca78b82
8 changed files with 56 additions and 44 deletions

View File

@@ -91,11 +91,11 @@ func TestFuncFetchBy(t *testing.T) {
fmt.Println(err)
fmt.Println(account)
account1, err := accountMgr.FetchByAccountUniqueIndex(2, 2) // unique index
account1, err := accountMgr.FetchUniqueIndexByAccount(2, 2) // unique index
fmt.Println(err)
fmt.Println(account1)
accounts, err := accountMgr.FetchByTpIndex(2, 2)
accounts, err := accountMgr.FetchIndexByTp(2, 2)
fmt.Println(err)
fmt.Println(accounts)
}