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:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user