From: Michael Fuhr <mike@fuhr.org>
To: Rudinei Dias <rudinei@unilasalle.edu.br>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Help with returning data type
Date: Wed, 16 Feb 2005 16:41:08 -0700
Message-ID: <20050216234108.GA20623@winnie.fuhr.org> (raw)
In-Reply-To: <42134572.7040503@unilasalle.edu.br>
References: <42134572.7040503@unilasalle.edu.br>
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/
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: mike@fuhr.org, rudinei@unilasalle.edu.br
Subject: Re: Help with returning data type
In-Reply-To: <20050216234108.GA20623@winnie.fuhr.org>
* 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