Re: PQerrorMessage: suppress trailing new line?

From: "Andrej Ricnik-Bay" <andrej(dot)groups(at)gmail(dot)com>
To: "Felix Kater" <fkater(at)googlemail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQerrorMessage: suppress trailing new line?
Date: 2007-04-23 23:14:43
Message-ID: b35603930704231614g40d73f06wec845fa876efbc5b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/24/07, Felix Kater <fkater(at)googlemail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ketema 2007-04-23 23:20:32 where clause help
Previous Message Benjamin Arai 2007-04-23 22:38:11 Slow query using simple equality operators