8000 Fix thinko in worker_spi, count(*) returns a bigint. Thanks RhodiumToad · sqlparser/postgres@9720164 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9720164

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

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
@@ -120,7 +120,7 @@ initialize_worker_spi(worktable *table)
120120
if (SPI_processed != 1)
121121
elog(FATAL, "not a singleton result");
122122

123-
ntup = DatumGetInt32(SPI_getbinval(SPI_tuptable->vals[0],
123+
ntup = DatumGetInt64(SPI_getbinval(SPI_tuptable->vals[0],
124124
SPI_tuptable->tupdesc,
125125
1, &isnull));
126126
38DB if (isnull)

0 commit comments

Comments
 (0)
0