From f478856c7f875efceea27f30041965571815f05b Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Mon, 2 May 2005 00:37:07 +0000 Subject: Change SPI functions to use a `long' when specifying the number of tuples to produce when running the executor. This is consistent with the internal executor APIs (such as ExecutorRun), which also use a long for this purpose. It also allows FETCH_ALL to be passed -- since FETCH_ALL is defined as LONG_MAX, this wouldn't have worked on platforms where int and long are of different sizes. Per report from Tzahi Fadida. --- doc/src/sgml/spi.sgml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/spi.sgml b/doc/src/sgml/spi.sgml index 52e41e1b890..412b88af8f3 100644 --- a/doc/src/sgml/spi.sgml +++ b/doc/src/sgml/spi.sgml @@ -1,5 +1,5 @@ @@ -292,7 +292,7 @@ void SPI_pop(void) -int SPI_execute(const char * command, bool read_only, int count) +int SPI_execute(const char * command, bool read_only, long count) @@ -423,7 +423,7 @@ typedef struct - int count + long count maximum number of rows to process or return @@ -598,7 +598,7 @@ typedef struct -int SPI_exec(const char * command, int count) +int SPI_exec(const char * command, long count) @@ -627,7 +627,7 @@ int SPI_exec(const char * command, int count - int count + long count maximum number of rows to process or return @@ -963,7 +963,7 @@ bool SPI_is_cursor_plan(void * plan) int SPI_execute_plan(void * plan, Datum * values, const char * nulls, - bool read_only, int count) + bool read_only, long count) @@ -1030,7 +1030,7 @@ int SPI_execute_plan(void * plan, Datum * valu - int count + long count maximum number of rows to process or return @@ -1104,7 +1104,7 @@ int SPI_execute_plan(void * plan, Datum * valu -int SPI_execp(void * plan, Datum * values, const char * nulls, int count) +int SPI_execp(void * plan, Datum * values, const char * nulls, long count) @@ -1162,7 +1162,7 @@ int SPI_execp(void * plan, Datum * values - int count + long count maximum number of rows to process or return @@ -1375,7 +1375,7 @@ Portal SPI_cursor_find(const char * name) -void SPI_cursor_fetch(Portal portal, bool forward, int count) +void SPI_cursor_fetch(Portal portal, bool forward, long count) @@ -1411,7 +1411,7 @@ void SPI_cursor_fetch(Portal portal, bool forw - int count + long count maximum number of rows to fetch @@ -1448,7 +1448,7 @@ void SPI_cursor_fetch(Portal portal, bool forw -void SPI_cursor_move(Portal portal, bool forward, int count) +void SPI_cursor_move(Portal portal, bool forward, long count) @@ -1485,7 +1485,7 @@ void SPI_cursor_move(Portal portal, bool forwa - int count + long count maximum number of rows to move -- cgit v1.2.3