Content-Length: 258934 | pFad | http://github.com/postgrespro/postgres/commit/cfa1cd711c2648e0beab50448c5a71ef91a3e1cb

15 Fix thinko in worker_spi, count(*) returns a bigint. Thanks RhodiumToad · postgrespro/postgres@cfa1cd7 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/cfa1cd711c2648e0beab50448c5a71ef91a3e1cb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy