public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: Igor Korot <[email protected]>
Cc: Adrian Klaver <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Why that query fails?
Date: Sun, 26 Apr 2026 18:15:58 -0400
Message-ID: <CANzqJaDdLaPQQAAvYf-2dXVUJn-XF515BosSVwacxCXFHBg0Bg@mail.gmail.com> (raw)
In-Reply-To: <CA+FnnTywwWa14tN5CcHuKzKJAt+G5Ds_WzZBYoE3_UWWLjZUWQ@mail.gmail.com>
References: <CA+FnnTy3D3Zo0XxNe37w5FnmGftvv_jWuLVMdS0Y3qPanx2seA@mail.gmail.com>
	<[email protected]>
	<CA+FnnTx5L4C6qpt8Nn2++7uKdv1GOgizHh_DE6HtsRbrDWLZOg@mail.gmail.com>
	<CA+FnnTwB7gAh2WG+XGw4UdSGb5kdt=AKvoZDc=__aG50eiV4OQ@mail.gmail.com>
	<CA+FnnTywwWa14tN5CcHuKzKJAt+G5Ds_WzZBYoE3_UWWLjZUWQ@mail.gmail.com>

When in doubt, run the query interactively.

On Sun, Apr 26, 2026 at 6:06 PM Igor Korot <[email protected]> wrote:

> Adrian,
>
> On Sun, Apr 26, 2026 at 3:38 PM Igor Korot <[email protected]> wrote:
> >
> > Adrian,
> >
> > On Sun, Apr 26, 2026 at 3:34 PM Igor Korot <[email protected]> wrote:
> > >
> > > Adrian,
> > >
> > > On Sun, Apr 26, 2026 at 3:22 PM Adrian Klaver <
> [email protected]> 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]
> >
> > And the conversion is as follows:
> >
> > [code]
> >     std::wstring_convert<std::codecvt_utf8<wchar_t> > m_myconv;
> > [/code]
> >
> > Thank you.
>
> Those are the values from gdb:
>
> [code]
> (gdb) p values[0]
> $1 = 0x603001613380 "test"
> (gdb) p strlen(values[0])
> $2 = 4
> (gdb)
> [/code]
>
> Thank you.
>
> >
> > >
> > > Thank you.
> > >
> > > >
> > > > > 0x00\nCONTEXT:  unnamed portal parameter $1\n"
> > > > > (gdb)
> > > > > [/quote]
> > > > >
> > > > > What am I doing wrong?
> > > > >
> > > > > Thank you.
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Adrian Klaver
> > > > [email protected]
>
>
>

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Why that query fails?
  In-Reply-To: <CANzqJaDdLaPQQAAvYf-2dXVUJn-XF515BosSVwacxCXFHBg0Bg@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox