Re: ERROR: invalid input syntax for integer: "" - Mailing list pgsql-general

From Tom Lane
Subject Re: ERROR: invalid input syntax for integer: ""
Date
Msg-id 19541.1253887942@sss.pgh.pa.us
Whole thread Raw
In response to ERROR: invalid input syntax for integer: ""  (Rakotomandimby Mihamina <mihamina@gulfsat.mg>)
List pgsql-general
Rakotomandimby Mihamina <mihamina@gulfsat.mg> writes:
> I get invalid input syntax when UPDATEing my radacct table:

It's the ELSE '' here:

>    AcctSessionTime = CASE WHEN '' = '' THEN   (EXTRACT(EPOCH FROM ('2009-09-25 10:35:44'::TIMESTAMP WITH TIME ZONE -
AcctStartTime::TIMESTAMPWITH TIME ZONE   - '0'::INTERVAL)))::BIGINT ELSE '' END, 

FWIW, 8.4 will give you a syntax error pointer in cases like this.

            regards, tom lane

pgsql-general by date:

Previous
From: "Luiz Bernardi"
Date:
Subject: close inactive client connection
Next
From: Vick Khera
Date:
Subject: Re: repeatedly process termination in PG 8.2