|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.81 2002/12/15 21:01:34 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.82 2002/12/17 15:51:59 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -219,9 +219,6 @@ SPI_execp(void *plan, Datum *Values, char *Nulls, int tcount)
|
219 | 219 | if (res<0)
|
220 | 220 | returnres;
|
221 | 221 |
|
222 |
| -/* copy plan to current (executor) context */ |
223 |
| -plan= (void*)_SPI_copy_plan(plan,_SPI_CPLAN_CURCXT); |
224 |
| - |
225 | 222 | res=_SPI_execute_plan((_SPI_plan*)plan,Values,Nulls,tcount);
|
226 | 223 |
|
227 | 224 | _SPI_end_call(true);
|
@@ -1480,7 +1477,7 @@ _SPI_copy_plan(_SPI_plan *plan, int location)
|
1480 | 1477 | parentcxt=_SPI_current->procCxt;
|
1481 | 1478 | elseif (location==_SPI_CPLAN_TOPCXT)
|
1482 | 1479 | parentcxt=TopMemoryContext;
|
1483 |
| -else |
| 1480 | +else/* (this case not currently used) */ |
1484 | 1481 | parentcxt=CurrentMemoryContext;
|
1485 | 1482 |
|
1486 | 1483 | /*
|
|