Re: [GENERAL] return value for PQbinaryTuples

2009-12-02 Thread Daniel Verite
Merlin Moncure wrote: PQbinaryTuples is basically going to return whatever you passed into resultformat when you executed the query (in the case of PQexec, it's going to be 1 always). You mean 0 (i.e. text, not binary). And with an exception on PQexec(FETCH c) when c is a binary

Re: [GENERAL] return value for PQbinaryTuples

2009-12-02 Thread Merlin Moncure
On Wed, Dec 2, 2009 at 12:28 PM, Daniel Verite dan...@manitou-mail.org wrote:        Merlin Moncure wrote: PQbinaryTuples is basically going to return whatever you passed into resultformat when you executed the query (in the case of PQexec, it's going to be 1 always). You mean 0 (i.e. text,

Re: [GENERAL] return value for PQbinaryTuples

2009-11-28 Thread Merlin Moncure
On Fri, Nov 27, 2009 at 3:33 AM, bbhe bbhe_2...@163.com wrote: hi all, I don't why PQbinaryTuples function returns 1 even the select statement only returns two integer fields. Although there are some columns with type bytea in the table. PQbinaryTuples is basically going to return whatever

[GENERAL] return value for PQbinaryTuples

2009-11-27 Thread bbhe
hi all, I don't why PQbinaryTuples function returns 1 even the select statement only returns two integer fields. Although there are some columns with type bytea in the table. Are there any documents describe this? -- Regards Sam -- Regards Sam

[GENERAL] return value for PQbinaryTuples

2009-11-27 Thread bbhe
hi all, I don't why PQbinaryTuples function returns 1 even the select statement only returns two integer fields. Although there are some columns with type bytea in the table. Are there any documents describe this? -- Regards Sam