The recent change to fix the rand panic created a new issue, the count is always 0 because the type the empty interface is casted to is wrong, see code snippet below:
switch r := rows[0].(type) {
case int64: //correct type case
count = r
case map[string]interface{}: //wrong type cast
count = cconv.LongConverter.ToLong(r["count"])
}
The query is correct, fixing the cast will solve the problem, alternatively you could modify the query (I think) if you wanted to maintain the map[string]interface{}.
The recent change to fix the rand panic created a new issue, the count is always 0 because the type the empty interface is casted to is wrong, see code snippet below:
https://github.com/pip-services3-go/pip-services3-postgres-go/blob/main/persistence/PostgresPersistence.go#L795
The query is correct, fixing the cast will solve the problem, alternatively you could modify the query (I think) if you wanted to maintain the map[string]interface{}.