Re: Help with returning data type

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Rudinei Dias <rudinei(at)unilasalle(dot)edu(dot)br>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Help with returning data type
Date: 2005-02-16 23:41:08
Message-ID: 20050216234108.GA20623@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Wed, Feb 16, 2005 at 10:06:58AM -0300, Rudinei Dias wrote:
>
> * // 3 - THIS **DONT **WORK (retrieving bool)
> ...
> bytea = PQgetvalue(res, i, 0);
> long_ret = atol(bytea);

What's the value of bytea (the string bytea points to)?
What output were you expecting?
What output did you get?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Janet Borschowa 2005-02-17 00:50:26 Re: Help with returning data type
Previous Message Rudinei Dias 2005-02-16 13:06:58 Help with returning data type