PQunescapeBytea Question - Mailing list pgsql-general

From Jerry LeVan
Subject PQunescapeBytea Question
Date
Msg-id 9BFA4BA8-E6EE-11D8-8CDC-000393779D9C@eku.edu
Whole thread Raw
Responses Re: PQunescapeBytea Question  (Kris Jurka <books@ejurka.com>)
List pgsql-general
Is there any chance that PQunescapeBytea will
always have a \000 at the end of the
unescaped buffer?

unescvalue = PQgetvalue(lastResult, row, fieldNum);
value = PQunescapeBytea(unescvalue, &size);

ie  is "value" a C string or do I have to make
another copy so I can append a \000 byte?

Sigh, I expect the latter...

Jerry


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: PG over NFS tips
Next
From: Cott Lang
Date:
Subject: Re: PG over NFS tips