Re: insert data with invalid input syntax for integer:"42P01"

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Pepe TD Vo <pepevo(at)yahoo(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: insert data with invalid input syntax for integer:"42P01"
Date: 2019-02-11 20:00:36
Message-ID: 741DB90F-6C7A-4AEA-B2EB-DD37C5529AF4@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Feb 11, 2019, at 12:25 PM, Pepe TD Vo <pepevo(at)yahoo(dot)com> wrote:
>
> insert into cidrmgmt.errorlog(...)

For what it's worth, it seems likely the error is coming from that line (assuming you posted the correct procedure definition), thus that's the table whose definition matters. Further, the bad value is likely coming from the context, and there's no info here that would help figure out why there's "42P01" where an integer is required. But I can tell you that PG's nearest equivalent of Oracle's sys_context is untyped, always a string, so there would have to be a cast to an integer type. But of course you can't cast 42P01 to an integer, so that has to be figured out first.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Ribe 2019-02-11 20:02:39 Re: insert data with invalid input syntax for integer:"42P01"
Previous Message David G. Johnston 2019-02-11 19:58:54 Re: insert data with invalid input syntax for integer:"42P01"