Re: Why that query fails?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Why that query fails?
Date: 2026-04-26 20:22:28
Message-ID: 082a4816-1f4a-4f52-bef6-97c194eebad6@aklaver.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/26/26 1:15 PM, Igor Korot wrote:
> Hi, ALL,
> [quote]
> Thread 1 "dbhandler" hit Breakpoint 1,

> 66 errorMsg.push_back( L"Error executing query: " + err );
> (gdb) p err
> $2 = L"ERROR: invalid byte sequence for encoding \"UTF8\":

I would think the above is a clue.

Are you sure the value you are passing to the parameter is UTF8?

> 0x00\nCONTEXT: unnamed portal parameter $1\n"
> (gdb)
> [/quote]
>
> What am I doing wrong?
>
> Thank you.
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2026-04-26 20:34:08 Re: Why that query fails?
Previous Message Igor Korot 2026-04-26 20:15:26 Why that query fails?