pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rob stone <floriparob@gmail.com>
To: Jiří Pavlovský <jiri@pavlovsky.eu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: libpq and mysterious "invalid byte sequence for encoding UTF8".
Date: Tue, 02 Feb 2021 12:52:05 +1100
Message-ID: <23edd5119fad0d4fc358123a51a0158b05fabb8b.camel@gmail.com> (raw)
In-Reply-To: <8c67bf16-e267-a40c-25da-ebc646d0753d@pavlovsky.eu>
References: <8b88f867-d0d0-6deb-8f13-48853a57080a@pavlovsky.eu>
	<3335118.1612191322@sss.pgh.pa.us>
	<8c67bf16-e267-a40c-25da-ebc646d0753d@pavlovsky.eu>

Hello,

On Mon, 2021-02-01 at 18:03 +0100, Jiří Pavlovský wrote:
> 
> 
> Thanks for the answer.
> 
> 
> I don't think triggers or constraints are the issue.
> 
> The exact same code works if I create a small test program with the
> same 
> query and the same parameters.
> 
> But when used in the context of the whole application it gives the
> error.
> 
>   I don't know what should I try. I tried all possible combinations
> of 
> parameters.
> 
> I have just even tried to disable triggers and remove any constraints
> from the table. Same error.
> 
Columns:- maincontact boolean DEFAULT false,
        publdatacontact boolean DEFAULT false,
        invcontact boolean DEFAULT false,
        queries_recipient boolean,
        fakelastname boolean NOT NULL DEFAULT false,

are defined as booleans and all except one have defaults declared, yet
you are passing NULL's which the insert tries to cast to boolean.
Maybe this is the cause of the error??

My 2 cents worth.









view thread (7+ messages)  latest in thread

Message-ID: <23edd5119fad0d4fc358123a51a0158b05fabb8b.camel@gmail.com>
Permalink:  ../23edd5119fad0d4fc358123a51a0158b05fabb8b.camel@gmail.com/
Also on:    postgresql.org/message-id/23edd5119fad0d4fc358123a51a0158b05fabb8b.camel@gmail.com

 · 

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-general@postgresql.org
  Cc: floriparob@gmail.com, jiri@pavlovsky.eu, tgl@sss.pgh.pa.us
  Subject: Re: libpq and mysterious "invalid byte sequence for encoding UTF8".
  In-Reply-To: <23edd5119fad0d4fc358123a51a0158b05fabb8b.camel@gmail.com>
  References: <8b88f867-d0d0-6deb-8f13-48853a57080a@pavlovsky.eu> <3335118.1612191322@sss.pgh.pa.us> <8c67bf16-e267-a40c-25da-ebc646d0753d@pavlovsky.eu> <23edd5119fad0d4fc358123a51a0158b05fabb8b.camel@gmail.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