Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5392e73

Browse files
committed
Added missing SPI_finish() calls to get_tuple_of_interest(). Fixes bug
reported by Andrea Grassi.
1 parent185430a commit5392e73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎contrib/dblink/dblink.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,7 @@ get_tuple_of_interest(Oid relid, int16 *pkattnums, int16 pknumatts, char **src_p
17661766
SPITupleTable*tuptable=SPI_tuptable;
17671767

17681768
tuple=SPI_copytuple(tuptable->vals[0]);
1769+
SPI_finish();
17691770

17701771
returntuple;
17711772
}
@@ -1774,6 +1775,8 @@ get_tuple_of_interest(Oid relid, int16 *pkattnums, int16 pknumatts, char **src_p
17741775
/*
17751776
* no qualifying tuples
17761777
*/
1778+
SPI_finish();
1779+
17771780
returnNULL;
17781781
}
17791782

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp