Re: Why that query fails? - Mailing list pgsql-general

From Igor Korot
Subject Re: Why that query fails?
Date
Msg-id CA+FnnTx5L4C6qpt8Nn2++7uKdv1GOgizHh_DE6HtsRbrDWLZOg@mail.gmail.com
Whole thread
In response to Re: Why that query fails?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Why that query fails?
List pgsql-general
Adrian,

On Sun, Apr 26, 2026 at 3:22 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> 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?

Positive.

This is what the following line should be doing:

[code]
57            strcpy( values[0], m_pimpl->m_myconv.to_bytes(
name.c_str() ).c_str() );
[/code]

Thank you.

>
> > 0x00\nCONTEXT:  unnamed portal parameter $1\n"
> > (gdb)
> > [/quote]
> >
> > What am I doing wrong?
> >
> > Thank you.
> >
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Why that query fails?
Next
From: Igor Korot
Date:
Subject: Re: Why that query fails?