Re: libpq-fe: PQgetvalue() ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq-fe: PQgetvalue() ?
Date
Msg-id 999.1164412323@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq-fe: PQgetvalue() ?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: libpq-fe: PQgetvalue() ?  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> This has been saved for the 8.3 release:

> Danny Milosavljevic wrote:
>> Shouldn't the return type of "PQgetvalue" be "const char*", then?

The pluses and minuses of const-ifying libpq's API have been discussed
before.  If we were working in a green field we'd no doubt do it, but
I'm not sure that users would thank us for breaking their existing
working code.  Adding a "const" to a function result value has direct
impact on calling applications...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: libpq-fe: PQgetvalue() ?
Next
From: Bruce Momjian
Date:
Subject: Re: libpq-fe: PQgetvalue() ?