On Fri, Sep 01, 2006 at 03:41:12AM -0400, Jasbinder Bali wrote:
> The structure SPITupleTable is defined thus:
> If the select query returns 10 rows (say),
> how to access the result of each row separately?
Read this:
> >http://www.postgresql.org/docs/8.1/interactive/spi-interface-support.ht
The structure SPITupleTable is definedthus:typedef struct{MemoryContext tuptabcxt;/* memory context of result table */uint32 alloced;/* number of alloced vals */
uint32 free; /* number of free vals */TupleDesc tupdesc;/* row descripto
On Fri, Sep 01, 2006 at 02:24:32AM -0400, Jasbinder Bali wrote:
> Hi,
>
> While using SPI_execute for a select statement, how do we store the result
> returned by select statement (say a C variable)?
> SPI_execute returns different values for success or failure only as per the
> postgres manual.
Hi,While using SPI_execute for a select statement, how do we store the result returned by select statement (say a C variable)?SPI_execute returns different values for success or failure only as per the postgres manual.
Thanks,Jas