~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/backend/executor/nodeLimit.c

  • Committer: Package Import Robot
  • Author(s): Ubuntu Archive Auto-Backport
  • Date: 2011-10-27 06:13:09 UTC
  • mfrom: (5.3.14 sid)
  • Revision ID: package-import@ubuntu.com-20111027061309-zc27cjc6hu8yp0z0
Tags: 8.4.9-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
                                 * the state machine state to record having done so.
126
126
                                 */
127
127
                                if (!node->noCount &&
128
 
                                        node->position >= node->offset + node->count)
 
128
                                        node->position - node->offset >= node->count)
129
129
                                {
130
130
                                        node->lstate = LIMIT_WINDOWEND;
131
131
                                        return NULL;