libpq string escaping question - Mailing list pgsql-interfaces

From Klaus Darilion
Subject libpq string escaping question
Date
Msg-id 4799B63E.90006@pernau.at
Whole thread Raw
Responses Re: libpq string escaping question  ("Daniel Verite" <daniel@manitou-mail.org>)
List pgsql-interfaces
Hi all!
From the docs:> PQunescapeBytea>> Converts a string representation of binary data into binary data —> the reverse of
PQescapeBytea.This is needed when retrieving bytea> data in text format, but not when retrieving it in binary format.
 

But how do I know if data is retrieved in text or binary format? I read
that PQexecParams allows to specify the return format (text or binary)
but what about PQexec() and PQgetResult()? Do they return binary or
text? Or is it configurable for PQexec ann PQgetResult too?

Further from the docs (about E'' syntax):> The standard_conforming_strings value is read-only. Applications can>
retrievethe value to know how backslashes are processed. (Presence> of the parameter can also be taken as an indication
thatE'' string> syntax is supported.)
 

How can I retrieve this value?

thanks
klaus



pgsql-interfaces by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: DBD::Pg 2.0.0 release candidate available for testing
Next
From: "Daniel Verite"
Date:
Subject: Re: libpq string escaping question