Re: bug in COPY - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: bug in COPY
Date
Msg-id 200208271958.g7RJwac02983@candle.pha.pa.us
Whole thread Raw
In response to Re: bug in COPY  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: bug in COPY  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >       else if (*s == 0)
> > !         elog(ERROR, "pg_atoi: zero-length string!");
> 
> The exclamation point seems inappropriate.  Perhaps "zero-length input"
> would be better than "string" also.

I copied the other test case:
   if (s == (char *) NULL)       elog(ERROR, "pg_atoi: NULL pointer!"); 

I removed them both '!'.

> Otherwise this seems like a reasonable thing to do.

OK, will apply now.

--  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,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug in COPY
Next
From: Lamar Owen
Date:
Subject: Re: Open 7.3 items