diff options
author | Greg Stark <stark@mit.edu> | 2013-09-03 13:27:34 +0100 |
---|---|---|
committer | Greg Stark <stark@mit.edu> | 2013-09-03 13:27:34 +0100 |
commit | cfa1cd711c2648e0beab50448c5a71ef91a3e1cb (patch) | |
tree | 304ebe2b550a6dc6796615845acbf4f39c5d6c24 | |
parent | a93bdfc711399716328ce0811d600411b1314306 (diff) | |
download | postgresql-cfa1cd711c2648e0beab50448c5a71ef91a3e1cb.tar.gz postgresql-cfa1cd711c2648e0beab50448c5a71ef91a3e1cb.zip |
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 8aec9b2199d..23ace7a8afe 100644 --- a/contrib/worker_spi/worker_spi.c +++ b/contrib/worker_spi/worker_spi.c @@ -123,7 +123,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) |