Re: ERROR: invalid input syntax for integer: "0A000" - Mailing list pgsql-bugs

From Tom Lane
Subject Re: ERROR: invalid input syntax for integer: "0A000"
Date
Msg-id 17943.1570991483@sss.pgh.pa.us
Whole thread Raw
In response to ERROR: invalid input syntax for integer: "0A000"  ("McLaughlin, Michael" <McLaughlinM@byui.edu>)
List pgsql-bugs
"McLaughlin, Michael" <McLaughlinM@byui.edu> writes:
> Code including test:

>   err_num  INTEGER;

>     err_num := SQLSTATE;

I see no bug here.  SQLSTATE's value is not necessarily an integer [1],
so you shouldn't be trying to store it in one.

            regards, tom lane

[1] https://www.postgresql.org/docs/current/errcodes-appendix.html



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16045: vacuum_db crash and illegal memory alloc after pg_upgrade from PG11 to PG12
Next
From: Tomas Vondra
Date:
Subject: Re: ERROR: invalid input syntax for integer: "0A000"