Thread: libpq
Hey all,<br /><div class="gmail_quote"><br />Is it guaranteed that functions, which accept PGconn* (PGresult*)<br />properlyworks if PGconn* (PGresult*) is NULL or is it better to check<br />on NULL the value of the pointer before callingthose functions?<br /><br />Regards,<br /><font color="#888888">Dmitriy<br /><br /></font></div>
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