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:
parent
a93bdfc711
commit
cfa1cd711c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user