}
ci = &(SC_get_conn(stmt)->connInfo);
- /* if (SC_is_fetchcursor(stmt) && !stmt->manual_result) */
- if (SQL_CURSOR_FORWARD_ONLY == stmt->options.cursor_type && !stmt->manual_result)
+ if (SQL_CURSOR_FORWARD_ONLY == stmt->options.cursor_type)
{
if (fFetchType != SQL_FETCH_NEXT)
{
qi.row_size = ci->drivers.fetch_max;
sprintf(fetch, "fetch %d in %s",ci->drivers.fetch_max , self->cursor_name);
res = CC_send_query(self->hdbc, fetch, &qi, qflag);
+ TL_Destructor(self->result->manual_tuples);
SC_set_Result(self,res);
}