Skip to content
Snippets Groups Projects
Commit cfa1cd71 authored by Greg Stark's avatar Greg Stark
Browse files

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

parent a93bdfc7
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ initialize_worker_spi(worktable *table) ...@@ -123,7 +123,7 @@ initialize_worker_spi(worktable *table)
if (SPI_processed != 1) if (SPI_processed != 1)
elog(FATAL, "not a singleton result"); 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, SPI_tuptable->tupdesc,
1, &isnull)); 1, &isnull));
if (isnull) if (isnull)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment