/[pgestraier]/trunk/pgest.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/pgest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by dpavlin, Wed Jul 6 14:47:56 2005 UTC revision 38 by dpavlin, Fri Jul 8 12:47:49 2005 UTC
# Line 213  Datum pgest_attr(PG_FUNCTION_ARGS) Line 213  Datum pgest_attr(PG_FUNCTION_ARGS)
213                  est_cond_set_order(cond, order);                  est_cond_set_order(cond, order);
214          }          }
215    
216            if (limit) {
217                    elog(DEBUG1,"est_cond_set_max(%d)", limit + offset);
218                    est_cond_set_max(cond, limit + offset);
219            }
220    
221          /* get the result of search */          /* get the result of search */
222          est_result = est_db_search(db, cond, &resnum, NULL);          est_result = est_db_search(db, cond, &resnum, NULL);
223    
# Line 224  Datum pgest_attr(PG_FUNCTION_ARGS) Line 229  Datum pgest_attr(PG_FUNCTION_ARGS)
229          /* total number of tuples to be returned */          /* total number of tuples to be returned */
230          if (limit && limit < resnum) {          if (limit && limit < resnum) {
231                  nrows = limit;                  nrows = limit;
232                    elog(INFO, "This is probably a bug in limit implementation. Please report it to dpavlin@rot13.org");
233          } else {          } else {
234                  nrows = resnum - offset;                  nrows = resnum - offset;
235          }          }

Legend:
Removed from v.31  
changed lines
  Added in v.38

  ViewVC Help
Powered by ViewVC 1.1.26