Re: 7.3 -> pg_atoi: zero-length string - Mailing list pgsql-general

From SZUCS Gábor
Subject Re: 7.3 -> pg_atoi: zero-length string
Date
Msg-id 00ca01c29af9$bd678ed0$0a03a8c0@fejleszt2
Whole thread Raw
In response to Re: [HACKERS] 7.3 -> pg_atoi: zero-length string  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: 7.3 -> pg_atoi: zero-length string
List pgsql-general
I don't have 7.3 installed, just wondering...

What do the following do in PostgreSQL 7.3?

SELECT int4('');
SELECT CAST('' AS int4);

G.
--
while (!asleep()) sheep++;

---------------------------- cut here ------------------------------
----- Original Message -----
From: "Ben-Nes Michael" <miki@canaan.co.il>
Sent: Tuesday, December 03, 2002 6:17 PM


> Well I already fixed all my application, it was quiet easy though more
code
> was entered :(
>
> like:
>
> if ( !is_numeric($var) )
>     $var = 0;
>
> I hope the other projects will fix compliance fast.
>
> maybe this feature should be enabled when compiling ?



pgsql-general by date:

Previous
From: "Prachi Jain"
Date:
Subject: Regarding connection thru web application
Next
From: Lee Kindness
Date:
Subject: Re: 7.3 -> pg_atoi: zero-length string