Re: ERROR: invalid input syntax for integer: ""

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: invalid input syntax for integer: ""
Date: 2009-09-25 11:23:09
Message-ID: 20090925112309.GG19885@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to Rakotomandimby Mihamina :
> Hi all,
> I get invalid input syntax when UPDATEing my radacct table:
>
> freedsl=# \d radacct
> Table "public.radacct"
> Column | Type |
> Modifiers
> ----------------------+--------------------------+-------------------------------------------------------------
> radacctid | bigint | not null default
> ...
> acctsessiontime | bigint |
> ...
> AcctSessionTime = CASE WHEN '' = '' THEN (EXTRACT(EPOCH FROM
> ('2009-09-25 10:35:44'::TIMESTAMP WITH TIME ZONE -
> AcctStartTime::TIMESTAMP WITH TIME ZONE - '0'::INTERVAL)))::BIGINT ELSE
> '' END,

test=*# select ''::int;
ERROR: invalid input syntax for integer: ""

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Johan Nel 2009-09-25 11:25:54 Re: generic modelling of data models; enforcing constraints dynamically...
Previous Message Rakotomandimby Mihamina 2009-09-25 11:10:39 Re: ERROR: invalid input syntax for integer: ""