Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cfa1cd7

Browse files
committed
Fix thinko in worker_spi, count(*) returns a bigint. Thanks RhodiumToad
1 parent a93bdfc commit cfa1cd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/worker_spi/worker_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ initialize_worker_spi(worktable *table)
123123
if (SPI_processed != 1)
124124
elog(FATAL, "not a singleton result");
125125

126-
ntup = DatumGetInt32(SPI_getbinval(SPI_tuptable->vals[0],
126+
ntup = DatumGetInt64(SPI_getbinval(SPI_tuptable->vals[0],
127127
SPI_tuptable->tupdesc,
128128
1, &isnull));
129129
if (isnull)

0 commit comments

Comments
 (0)