From d168493ddf792e58ab6731fbc504bf5d1c455c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 18 Sep 2017 20:32:28 +0300 Subject: [PATCH] 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. --- server/modules/filter/maxrows/maxrows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/filter/maxrows/maxrows.c b/server/modules/filter/maxrows/maxrows.c index c4ac347bb..633cf5088 100644 --- a/server/modules/filter/maxrows/maxrows.c +++ b/server/modules/filter/maxrows/maxrows.c @@ -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; }