PQunescapeBytea Question

From: Jerry LeVan <jerry(dot)levan(at)eku(dot)edu>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: PQunescapeBytea Question
Date: 2004-08-05 14:49:10
Message-ID: 9BFA4BA8-E6EE-11D8-8CDC-000393779D9C@eku.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Cott Lang 2004-08-05 14:54:44 Re: PG over NFS tips
Previous Message Richard Huxton 2004-08-05 14:38:02 Re: Non-superuser connection limit exceeded