1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-04 12:42:24 +03:00

Fix thinko in worker_spi, count(*) returns a bigint. Thanks RhodiumToad

This commit is contained in:
Greg Stark 2013-09-03 13:27:34 +01:00
parent a93bdfc711
commit cfa1cd711c

View File

@ -123,7 +123,7 @@ initialize_worker_spi(worktable *table)
if (SPI_processed != 1)
elog(FATAL, "not a singleton result");
ntup = DatumGetInt32(SPI_getbinval(SPI_tuptable->vals[0],
ntup = DatumGetInt64(SPI_getbinval(SPI_tuptable->vals[0],
SPI_tuptable->tupdesc,
1, &isnull));
if (isnull)