From: Tom Lane <tgl@sss.pgh.pa.us>
To: vivek@staff.ownmail.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: SPI_getvalue gives a core dump
Date: Fri, 28 Jul 2006 12:38:27 -0400
Message-ID: <25294.1154104707@sss.pgh.pa.us> (raw)
In-Reply-To: <200607281627.k6SGRwtM029266@mail009.ownmail.com>
References: <200607281627.k6SGRwtM029266@mail009.ownmail.com>
<vivek@staff.ownmail.com> writes:
> i = DatumGetInt64(SPI_getbinval(SPI_tuptable->vals[0], tupdesc, 1, &isnull));
I think this is your problem: you're trying to use the wrong tupdesc to
retrieve from the SELECT count(*) result. SPI_tuptable->tupdesc would
work better there.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, vivek@staff.ownmail.com
Subject: Re: SPI_getvalue gives a core dump
In-Reply-To: <25294.1154104707@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox