pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: McLaughlin, Michael <McLaughlinM@byui.edu>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: ERROR: invalid input syntax for integer: "0A000"
Date: Sun, 13 Oct 2019 14:31:23 -0400
Message-ID: <17943.1570991483@sss.pgh.pa.us> (raw)
In-Reply-To: <B73099F5-D7ED-4C9E-9A39-D00EA31F5662@byui.edu>
References: <B73099F5-D7ED-4C9E-9A39-D00EA31F5662@byui.edu>

"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





view thread (3+ messages)  latest in thread

Message-ID: <17943.1570991483@sss.pgh.pa.us>
Permalink:  ../17943.1570991483@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17943.1570991483@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, McLaughlinM@byui.edu
  Subject: Re: ERROR: invalid input syntax for integer: "0A000"
  In-Reply-To: <17943.1570991483@sss.pgh.pa.us>
  References: <B73099F5-D7ED-4C9E-9A39-D00EA31F5662@byui.edu> <17943.1570991483@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox