Re: PQexecPrepared() question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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: PQexecPrepared() question
Date: 2025-12-17 03:08:37
Message-ID: 2547700.1765940917@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Igor Korot <ikorot01(at)gmail(dot)com> writes:
> If I want to have strings (aka char *) as parameters fr the query,
> should I send UTF-8 strings or something else?

They should be in whatever is selected as the client_encoding
on your connection. That goes for query strings too, and whatever
other text a client might send.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2025-12-17 05:26:56 Re: [GENERAL] Retrieving query results
Previous Message Igor Korot 2025-12-17 03:04:21 PQexecPrepared() question