Re: Why that query fails?

From: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Why that query fails?
Date: 2026-04-26 22:17:04
Message-ID: CAKAnmm+T9=yKB2kuWUAMaZ9jipbkQGJFbCfmq0z6cJ_OAw2M4g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

You are using binary format, but your length calculation is wrong:

int len1 = (int) name.length() * sizeof( wchar_t );

Just use text format for a query like this.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2026-04-26 22:59:21 Re: Why that query fails?
Previous Message Ron Johnson 2026-04-26 22:15:58 Re: Why that query fails?