diff options
| -rw-r--r-- | src/backend/executor/nodeLimit.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/backend/executor/nodeLimit.c b/src/backend/executor/nodeLimit.c index 48fb32d3843..c1363b4ecf8 100644 --- a/src/backend/executor/nodeLimit.c +++ b/src/backend/executor/nodeLimit.c @@ -125,7 +125,7 @@ ExecLimit(LimitState *node)  				 * the state machine state to record having done so.  				 */  				if (!node->noCount && -					node->position >= node->offset + node->count) +					node->position - node->offset >= node->count)  				{  					node->lstate = LIMIT_WINDOWEND;  					return NULL; | 
