From: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
---|---|
To: | SZUCS Gábor <surrano(at)mailbox(dot)hu> |
Cc: | <pgsql-general(at)postgresql(dot)org>, Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
Subject: | Re: 7.3 -> pg_atoi: zero-length string |
Date: | 2002-12-03 18:31:33 |
Message-ID: | 15852.63621.790830.748776@kelvin.csl.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Same as in the INSERT case:
iidbdb=# SELECT version();
version
-----------------------------------------------------------
PostgreSQL 7.3 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)
iidbdb=# SELECT int4('');
ERROR: pg_atoi: zero-length string
iidbdb=# SELECT CAST('' AS int4);
ERROR: pg_atoi: zero-length string
Lee.
SZUCS Gábor writes:
> 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 ?
From | Date | Subject | |
---|---|---|---|
Next Message | Aurangzeb M. Agha | 2002-12-03 18:36:41 | alter table differences on Cygwin and Linux? |
Previous Message | SZUCS Gábor | 2002-12-03 18:28:12 | Re: 7.3 -> pg_atoi: zero-length string |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Naeslund(f) | 2002-12-03 18:32:48 | Re: Backend crash with tsearch |
Previous Message | SZUCS Gábor | 2002-12-03 18:28:12 | Re: 7.3 -> pg_atoi: zero-length string |