From: Vianello, Daniel A <Daniel.Vianello@charter.com>
To: David G. Johnston <david.g.johnston@gmail.com>
To: jackchen88@gmail.com <jackchen88@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: RE: transaction and insert
Date: Wed, 17 Jul 2019 18:58:18 +0000
Message-ID: <d10cac6a5deb49c591871e92d1a590ad@NCEMEXGP001.CORP.CHARTERCOM.com> (raw)
In-Reply-To: <CAKFQuwYJMirR67W6b399FmnA50BELcvB4Gv47EimqYhm_Vd4LQ@mail.gmail.com>
References: <CAOFnj9iLGW9RBDHUewGjxtKqaSDc=1YMOcBMQ35ep+a1ERb8UA@mail.gmail.com>
<CAKFQuwYJMirR67W6b399FmnA50BELcvB4Gv47EimqYhm_Vd4LQ@mail.gmail.com>
The error is : ERROR: invalid input syntax for integer:
Server log for PostgreSQL or, probably more usefully, the application log of the problem that sending what appears to be an empty string and expecting the server to convert that into an integer. The empty string cannot be cast to integer, only numbers and NULL can be.
This can occur when bulk-uploading data from with decimal numbers, too. In other words ‘0’ can be cast as an integer, but ‘0.0’, when found in the same column, cannot.
E-MAIL CONFIDENTIALITY NOTICE:
The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.
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: Daniel.Vianello@charter.com, david.g.johnston@gmail.com, jackchen88@gmail.com
Subject: Re: transaction and insert
In-Reply-To: <d10cac6a5deb49c591871e92d1a590ad@NCEMEXGP001.CORP.CHARTERCOM.com>
References: <CAOFnj9iLGW9RBDHUewGjxtKqaSDc=1YMOcBMQ35ep+a1ERb8UA@mail.gmail.com> <CAKFQuwYJMirR67W6b399FmnA50BELcvB4Gv47EimqYhm_Vd4LQ@mail.gmail.com> <d10cac6a5deb49c591871e92d1a590ad@NCEMEXGP001.CORP.CHARTERCOM.com>
* 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