Commit cfa1cd71 authored by Greg Stark's avatar Greg Stark

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

parent a93bdfc7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment