Re: 7.3 -> pg_atoi: zero-length string

From: SZUCS Gábor <surrano(at)mailbox(dot)hu>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: 7.3 -> pg_atoi: zero-length string
Date: 2002-12-03 18:28:12
Message-ID: 00ca01c29af9$bd678ed0$0a03a8c0@fejleszt2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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(at)canaan(dot)co(dot)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 ?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lee Kindness 2002-12-03 18:31:33 Re: 7.3 -> pg_atoi: zero-length string
Previous Message Bruce Momjian 2002-12-03 17:38:44 Re: 7.4 Wishlist

Browse pgsql-hackers by date

  From Date Subject
Next Message Lee Kindness 2002-12-03 18:31:33 Re: 7.3 -> pg_atoi: zero-length string
Previous Message Teodor Sigaev 2002-12-03 18:09:57 Re: Backend crash with tsearch