Re: Results interpretation

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Results interpretation
Date: 2017-08-18 18:45:40
Message-ID: CA+FnnTwJaa=PHPHw+nTfzEcJp4-8AkMkUh=xpK-ibYo_S9ozKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, Vincenzo,

On Fri, Aug 18, 2017 at 1:51 PM, Vincenzo Romano
<vincenzo(dot)romano(at)notorand(dot)it> wrote:
> Afaik, pgresult structure and it's fields are not meant to be handled
> directly apart of comparing the pointer to null.

So if I want to get an integer value with PQgetValue() I don't need to
do anything?
I.e. no ntoh() call?

Thank you.

>
>
>
> --
> Vincenzo Romano - NotOrAnd.IT
> Information Technologies
> --
> NON QVIETIS MARIBVS NAVTA PERITVS
>
> Il 18 ago 2017 19:46, "Igor Korot" <ikorot01(at)gmail(dot)com> ha scritto:
>>
>> Hi,
>> I looked at the documentation, but couldn't find it.
>>
>> If I do PQexec() call, the results will be interpreted as binary or text?
>>
>> I'm trying to get an int field from the query and wonder if I need to do
>> hton() call or not?
>>
>> Thank you.
>>
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vincenzo Romano 2017-08-18 18:52:20 Re: Results interpretation
Previous Message twoflower 2017-08-18 18:40:28 archive_command fails but works outside of Postgres