Thread: ERROR:  pg_atoi: error in "NULL": can't parse "NULL"

ERROR:  pg_atoi: error in "NULL": can't parse "NULL"

From
Rado Petrik
Date:
Hi , 


I have any column. 'test' . When I insert 'none' to column 'test' , no
problem.

test
-----
NONE 

But when I update column , postgreSQL return this error.
ERROR:  pg_atoi: error in "NULL": can't parse "NULL"

Where is problem ? 

Thanks
-- 
Rado Petrik <r.p@szm.sk>



Re: ERROR:Â pg_atoi: error in"NULL": can't parse "NULL"

From
Josh Berkus
Date:
Rado,

> But when I update column , postgreSQL return this error.
>
> ERROR:  pg_atoi: error in "NULL": can't parse "NULL"
>
> Where is problem ?

Please post your updated statement.

--
Josh Berkus
Aglio Database Solutions
San Francisco



Re: ERROR:  pg_atoi: error in "NULL": can't

From
Jean-Luc Lachance
Date:
Use NULL without quotes


Rado Petrik wrote:
>
> Hi ,
>
> I have any column. 'test' . When I insert 'none' to column 'test' , no
> problem.
>
> test
> -----
> NONE
>
> But when I update column , postgreSQL return this error.
>
> ERROR:  pg_atoi: error in "NULL": can't parse "NULL"
>
> Where is problem ?
>
> Thanks
> --
> Rado Petrik <r.p@szm.sk>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html