Re: PQerrorMessage: suppress trailing new line? - Mailing list pgsql-general

From Andrej Ricnik-Bay
Subject Re: PQerrorMessage: suppress trailing new line?
Date
Msg-id b35603930704231614g40d73f06wec845fa876efbc5b@mail.gmail.com
Whole thread Raw
In response to PQerrorMessage: suppress trailing new line?  (Felix Kater <fkater@googlemail.com>)
Responses Re: PQerrorMessage: suppress trailing new line?  (Felix Kater <fkater@googlemail.com>)
List pgsql-general
On 4/24/07, Felix Kater <fkater@googlemail.com> wrote:
> Hi,
>
> the messages returned by PQerrorMessage() contain a trailing new line.
> So, they doesn't nicely integrate into strings formatted by printf.
>
> Is there a way to suppress the trailing new line (except for
> alloc/copy to a new string)?
The alloc kind of suggests that you're using C ... is that
correct?  Either way - please be a bit more specific as to what you're
trying to achieve by which means.


> Thank You
> Felix
Cheers,
Andrej

pgsql-general by date:

Previous
From: Benjamin Arai
Date:
Subject: Slow query using simple equality operators
Next
From: Ketema
Date:
Subject: where clause help