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.
Showing
- doc/src/sgml/spi.sgml 13 additions, 13 deletionsdoc/src/sgml/spi.sgml
- src/backend/executor/spi.c 17 additions, 17 deletionssrc/backend/executor/spi.c
- src/include/executor/spi.h 8 additions, 8 deletionssrc/include/executor/spi.h
- src/pl/plpgsql/src/pl_exec.c 3 additions, 3 deletionssrc/pl/plpgsql/src/pl_exec.c
- src/pl/plpython/plpython.c 8 additions, 8 deletionssrc/pl/plpython/plpython.c
Loading
Please register or sign in to comment