libq API question

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: libq API question
Date: 2026-03-12 22:35:30
Message-ID: CA+FnnTxct7egChhXytL_BjjGbzECF1=GucEe8SYjqLZoELupuQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2026-03-12 22:39:02 Re: libq API question
Previous Message Justin Swanhart 2026-03-12 21:43:00 Re: (PostgreSQL 17) View usage resulting in 'ERROR: unrecognized node type: 2'