git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 185430a)
Added missing SPI_finish() calls to get_tuple_of_interest(). Fixes bug
2003年11月26日 20:43:25 +0000 (20:43 +0000)
2003年11月26日 20:43:25 +0000 (20:43 +0000)
reported by Andrea Grassi.


diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c
index bb601c5436acc0cd8fa9993e11c7da0bfc4fb497..c75f7f0b85fea0cf0fd098f45fe22ddfdcab2887 100644 (file)
--- a/contrib/dblink/dblink.c
+++ b/contrib/dblink/dblink.c
@@ -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;
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /