Fix maxrows offset calculation

The code that handles the resultset rows added the extra offset given as a
parameter into the total offset when it should've be ignored.
This commit is contained in:
Markus Mäkelä
2017-09-18 20:32:28 +03:00
parent a4bad5ffd2
commit d168493ddf

View File

@ -998,7 +998,7 @@ static int handle_rows(MAXROWS_SESSION_DATA *csdata, GWBUF* buffer, size_t extra
} }
} }
csdata->res.offset += offset; csdata->res.offset += offset - extra_offset;
return rv; return rv;
} }