Hi, Finally I fixed it :)
It has issue in sub-sequence call, it looses the result store in values[] @line 84 .
thats why, it successfully return only single row in first call and fails in further call.
It can be fix by preserving results (i.e. values[]).
Thank you !
Regards,
Amul Sul