|
26 | 26 | * |
27 | 27 | * |
28 | 28 | * IDENTIFICATION |
29 | | - * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.195 2002/12/18 00:14:47 tgl Exp $ |
| 29 | + * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.196 2003/01/08 23:32:29 tgl Exp $ |
30 | 30 | * |
31 | 31 | *------------------------------------------------------------------------- |
32 | 32 | */ |
@@ -166,7 +166,7 @@ ExecutorStart(QueryDesc *queryDesc) |
166 | 166 | *except to start up/shut down the destination. Otherwise, |
167 | 167 | *we retrieve up to 'count' tuples in the specified direction. |
168 | 168 | * |
169 | | - *Note: count = 0 is interpreted as no portal limit,e.g. run to |
| 169 | + *Note: count = 0 is interpreted as no portal limit,i.e., run to |
170 | 170 | *completion. |
171 | 171 | * |
172 | 172 | * ---------------------------------------------------------------- |
@@ -846,6 +846,7 @@ ExecEndPlan(PlanState *planstate, EState *estate) |
846 | 846 | * |
847 | 847 | *processes the query plan to retrieve 'numberTuples' tuples in the |
848 | 848 | *direction specified. |
| 849 | + * |
849 | 850 | *Retrieves all tuples if numberTuples is 0 |
850 | 851 | * |
851 | 852 | *result is either a slot containing the last tuple in the case |
@@ -1091,10 +1092,10 @@ lnext:; |
1091 | 1092 | /* |
1092 | 1093 | * check our tuple count.. if we've processed the proper number |
1093 | 1094 | * then quit, else loop again and process more tuples. Zero |
1094 | | - *number_tuples means no limit. |
| 1095 | + *numberTuples means no limit. |
1095 | 1096 | */ |
1096 | 1097 | current_tuple_count++; |
1097 | | -if (numberTuples==current_tuple_count) |
| 1098 | +if (numberTuples&&numberTuples==current_tuple_count) |
1098 | 1099 | break; |
1099 | 1100 | } |
1100 | 1101 |
|
|