Re: libpq - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq
Date
Msg-id 14368.1281625492@sss.pgh.pa.us
Whole thread Raw
In response to libpq  (Dmitriy Igrishin <dmitigr@gmail.com>)
List pgsql-hackers
Dmitriy Igrishin <dmitigr@gmail.com> writes:
> Is it guaranteed that functions, which accept PGconn* (PGresult*)
> properly works if PGconn* (PGresult*) is NULL or is it better to check
> on NULL the value of the pointer before calling those functions?

I think they all do check for NULL, but whether they give back a default
result that's useful for you is harder to say.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dmitriy Igrishin
Date:
Subject: libpq
Next
From: Dmitriy Igrishin
Date:
Subject: libpq and TOO MANY CONNECTIONS