public inbox for [email protected]
help / color / mirror / Atom feedPQexecPrepared() question
2+ messages / 2 participants
[nested] [flat]
* PQexecPrepared() question
@ 2025-12-17 03:04 Igor Korot <[email protected]>
2025-12-17 03:08 ` Re: PQexecPrepared() question Tom Lane <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Igor Korot @ 2025-12-17 03:04 UTC (permalink / raw)
To: pgsql-generallists.postgresql.org <[email protected]>
Hi, ALL,
If I want to have strings (aka char *) as parameters fr the query,
should I send UTF-8 strings or something else?
Thank you.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PQexecPrepared() question
2025-12-17 03:04 PQexecPrepared() question Igor Korot <[email protected]>
@ 2025-12-17 03:08 ` Tom Lane <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2025-12-17 03:08 UTC (permalink / raw)
To: Igor Korot <[email protected]>; +Cc: pgsql-generallists.postgresql.org <[email protected]>
Igor Korot <[email protected]> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-12-17 03:08 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-17 03:04 PQexecPrepared() question Igor Korot <[email protected]>
2025-12-17 03:08 ` Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox