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 |
|
|
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 |
} |
} |