mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
Fix thinko in worker_spi, count(*) returns a bigint. Thanks RhodiumToad
This commit is contained in:
parent
767de7dcd6
commit
9720164d34
@ -120,7 +120,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