From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitriy Igrishin <dmitigr@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: libpq
Date: Thu, 12 Aug 2010 11:04:52 -0400
Message-ID: <14368.1281625492@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTinYe8NMiegT27grzm+H1Zu+9Ufs==_LEVFNLBSg@mail.gmail.com>
References: <AANLkTikAAdoXd2WCsBa6=YG5qwu4of8ZO-XpH9Q+FRNs@mail.gmail.com>
<AANLkTinYe8NMiegT27grzm+H1Zu+9Ufs==_LEVFNLBSg@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, dmitigr@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: libpq
In-Reply-To: <14368.1281625492@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox