Tom Lane wrote:
> Bruce Momjian <[EMAIL PROTECTED]> writes:
> > I assume all the callers have to check for NULL,
> 
> Eh?  *None* of the callers of pqStrerror check for NULL, and I don't
> think they should have to.  We surely do not check for null return from
> plain strerror() anyplace.

Oh, I see.  It should be like strerror().  Makes sense. I replaced NULL
with "Unknown error" which is what strerror does for an unknown error
number.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply via email to