diff options
author | Greg Stark <stark@mit.edu> | 2013-09-03 13:27:34 +0100 |
---|---|---|
committer | Greg Stark <stark@mit.edu> | 2013-09-03 16:44:20 +0100 |
commit | 9720164d3426b0a223208b9dc5698264cdb9e2a0 (patch) | |
tree | 4bd2959f293b7474b0c9deb2a873c58446be489d | |
parent | 767de7dcd6a2305ae0c2035a43ae133dd0306501 (diff) |
Fix thinko in worker_spi, count(*) returns a bigint. Thanks RhodiumToad
-rw-r--r-- | contrib/worker_spi/worker_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/worker_spi/worker_spi.c b/contrib/worker_spi/worker_spi.c index 3a75bb3f4eb..99501fa5668 100644 --- a/contrib/worker_spi/worker_spi.c +++ b/contrib/worker_spi/worker_spi.c @@ -120,7 +120,7 @@ initialize_worker_spi(worktable *table) if (SPI_processed != 1) 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, 1, &isnull)); if (isnull) |