public inbox for [email protected]
help / color / mirror / Atom feedFrom: Igor Korot <[email protected]>
To: pgsql-generallists.postgresql.org <[email protected]>
Subject: libq API question
Date: Thu, 12 Mar 2026 15:35:30 -0700
Message-ID: <CA+FnnTxct7egChhXytL_BjjGbzECF1=GucEe8SYjqLZoELupuQ@mail.gmail.com> (raw)
Hi, ALL,
In the docs I see the following:
[quote]
PGresult *PQexecParams(PGconn *conn,
const char *command,
int nParams,
const Oid *paramTypes,
const char * const *paramValues,
const int *paramLengths,
const int *paramFormats,
int resultFormat);
[/quote]
Is there a reason why the parameters are int and not unsigned int?
There is no way the length can be negative...
Is it for backward compatibility?
Thank you.
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]
Subject: Re: libq API question
In-Reply-To: <CA+FnnTxct7egChhXytL_BjjGbzECF1=GucEe8SYjqLZoELupuQ@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