Skip site navigation (1) Skip section navigation (2)

unsigned and signed chars in libpq API

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: unsigned and signed chars in libpq API
Date: 2012-02-02 07:33:24
Message-ID: CAAfz9KP04h9t6h6q1=Hh+EUfcyV=os=G1PGqsk8uxt2R-dLt2g@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hey all,

Could you tell me please an objective reason why PQunescapeBytea()
returns unsigned char* rather than just char* ?
I am asking because a bit confused. How this intermixes with LO's API,
which based on signed chars (although as we all know large object -
is a just bytea splitted on chunks)?
And also PQgetvalue() returns char* rather than unsigned char*.

Thanks.

-- 
// Dmitriy.

Responses

pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2012-02-02 07:46:50
Subject: Re: Scaling XLog insertion (was Re: Moving more work outside WALInsertLock)
Previous:From: Magnus HaganderDate: 2012-02-02 07:32:46
Subject: Re: pg_stats_recovery view

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group