1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/fuxiaohei-GoInk

 / Детали:

cannot get right result when table.Count() called

Предстоит сделать
Владелец
Создано  
02.12.2024

I just want to get the row number of a table, so I do this

db := NewDb(xxx, xxx, xxx)
tbl := db.Table("xxx")
log.Printf("Row Num: %d\n", tbl.Count())

but, the result is always 0, that sounds strange.

maybe something is wrong, then I just check the db.Query method, do such changes:

//var ref interface{}
tmpItf[i] = new(string)

then re-run it, the right result comes out.

Please check this, thanks.

Комментарий (0)

GitLife Service Account Задача создана

Вход Перед тем как оставить комментарий

Статус
Ответственный
Контрольная точка
Pull Requests
Связанные запросы на слияние могут быть закрыты после их объединения
Ветки
Дата начала   -   Крайний срок
-
Закрепить/Открепить
Приоритет
Участники(1)
1
https://api.gitlife.ru/oschina-mirror/fuxiaohei-GoInk.git
git@api.gitlife.ru:oschina-mirror/fuxiaohei-GoInk.git
oschina-mirror
fuxiaohei-GoInk
fuxiaohei-GoInk