Added missing SPI_finish() calls to get_tuple_of_interest(). Fixes bug

reported by Andrea Grassi.
This commit is contained in:
Joe Conway 2003-11-26 20:43:25 +00:00
parent 185430aef9
commit 5392e73b6c
1 changed files with 3 additions and 0 deletions

View File

@ -1766,6 +1766,7 @@ get_tuple_of_interest(Oid relid, int16 *pkattnums, int16 pknumatts, char **src_p
SPITupleTable *tuptable = SPI_tuptable;
tuple = SPI_copytuple(tuptable->vals[0]);
SPI_finish();
return tuple;
}
@ -1774,6 +1775,8 @@ get_tuple_of_interest(Oid relid, int16 *pkattnums, int16 pknumatts, char **src_p
/*
* no qualifying tuples
*/
SPI_finish();
return NULL;
}