mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Further cleanup of dynahash.c API, in pursuit of portability and
readability. Bizarre '(long *) TRUE' return convention is gone, in favor of just raising an error internally in dynahash.c when we detect hashtable corruption. HashTableWalk is gone, in favor of using hash_seq_search directly, since it had no hope of working with non-LONGALIGNable datatypes. Simplify some other code that was made undesirably grotty by promixity to HashTableWalk.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.57 2001/08/02 18:08:43 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/spi.c,v 1.58 2001/10/05 17:28:12 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -783,12 +783,10 @@ SPI_cursor_move(Portal portal, bool forward, int count)
|
||||
void
|
||||
SPI_cursor_close(Portal portal)
|
||||
{
|
||||
Portal my_portal = portal;
|
||||
|
||||
if (!PortalIsValid(my_portal))
|
||||
if (!PortalIsValid(portal))
|
||||
elog(ERROR, "invalid portal in SPI cursor operation");
|
||||
|
||||
PortalDrop(&my_portal);
|
||||
PortalDrop(portal);
|
||||
}
|
||||
|
||||
/* =================== private functions =================== */
|
||||
|
Reference in New Issue
Block a user