Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9720164

Browse files
committed
Fix thinko in worker_spi, count(*) returns a bigint. Thanks RhodiumToad
1 parent767de7d commit9720164

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
if (isnull)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp