Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJjcp-0003x7-Ak for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Oct 2019 19:33:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJjYw-0003WA-Fg for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Oct 2019 19:29:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJieP-0003qi-Bm for pgsql-bugs@lists.postgresql.org; Sun, 13 Oct 2019 18:31:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iJieN-0004pY-1D for pgsql-bugs@lists.postgresql.org; Sun, 13 Oct 2019 18:31:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9DIVNjW017944; Sun, 13 Oct 2019 14:31:23 -0400 From: Tom Lane To: "McLaughlin, Michael" cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: ERROR: invalid input syntax for integer: "0A000" In-reply-to: References: Comments: In-reply-to "McLaughlin, Michael" message dated "Sun, 13 Oct 2019 17:44:25 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17942.1570991483.1@sss.pgh.pa.us> Date: Sun, 13 Oct 2019 14:31:23 -0400 Message-ID: <17943.1570991483@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "McLaughlin, Michael" 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