Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> 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
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073