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
I am trying to get big query response and encounter problem: if results doesn't fit in one fetch I get panic: runtime error: index out of range [18725] with length 18725 (number depends on fetchsize property)
After some research I discovered the root of issue, I guess. In ./result_set.go in func (results *queryResults) Next(dest []driver.Value) there is code
But, according fetch command structure, response doesn't have NumRowsInMessage field, and thereby application panic, if result set doesn't fit in on fetch.
I suppose, we need change result.NumRowsInMessage -> result.NumRows and that's all, but I am not so good in low-level driver implementation, so please, check it by yourself and correct me, if I am wrong.
The text was updated successfully, but these errors were encountered:
I am trying to get big query response and encounter problem: if results doesn't fit in one fetch I get
panic: runtime error: index out of range [18725] with length 18725
(number depends on fetchsize property)After some research I discovered the root of issue, I guess. In ./result_set.go in
func (results *queryResults) Next(dest []driver.Value)
there is codeBut, according fetch command structure, response doesn't have
NumRowsInMessage
field, and thereby application panic, if result set doesn't fit in on fetch.I suppose, we need change
result.NumRowsInMessage
->result.NumRows
and that's all, but I am not so good in low-level driver implementation, so please, check it by yourself and correct me, if I am wrong.The text was updated successfully, but these errors were encountered: