Re: [HACKERS] postgreSQL 6.4 patches.

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Bill(dot)Allie(at)mug(dot)org
Cc: hackers(at)postgreSQL(dot)org, pgsql-patches(at)postgreSQL(dot)org
Subject: Re: [HACKERS] postgreSQL 6.4 patches.
Date: 1998-09-12 16:00:39
Message-ID: 199809121600.MAA10179@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Applied.

> The pg_atoi() function uses strtol() to convert the string to numbers. Some
> implementations of strtol() treat empty strings ("") as invalid arguments
> while others convert this (erroneously, IHMO) to zero (0). Assuming that the
> expected behaviour of pg_atoi() is to return 0 if it is passed an empty
> string, I am supplying the following patch to explictly check for an empty
> string in pg_atoi() and return 0 if the string is empty. The patch will also
> trap a NULL character pointer being passed to pg_atoi() and will use elog() to
> print out an error message if the input char pointer is NULL.
>
Content-Description: uw7p4.patch

[Attachment, skipping...]

> ____ | Billy G. Allie | Domain....: Bill(dot)Allie(at)mug(dot)org
> | /| | 7436 Hartwell | Compuserve: 76337,2061
> |-/-|----- | Dearborn, MI 48126| MSN.......: B_G_Allie(at)email(dot)msn(dot)com
> |/ |LLIE | (313) 582-1540 |

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-09-12 16:11:00 Re: Porting effort and patches for the Irix port for PostgreSQL
Previous Message Thomas A. Szybist 1998-09-12 15:35:46 Re: [HACKERS] Exception in select IN with index