You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
switchr:=rows[0].(type) {
caseint64: //correct type casecount=rcasemap[string]interface{}: //wrong type castcount=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 text was updated successfully, but these errors were encountered:
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{}.
The text was updated successfully, but these errors were encountered: