libq API question - Mailing list pgsql-general

From Igor Korot
Subject libq API question
Date
Msg-id CA+FnnTxct7egChhXytL_BjjGbzECF1=GucEe8SYjqLZoELupuQ@mail.gmail.com
Whole thread
Responses Re: libq API question
List 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.



pgsql-general by date:

Previous
From: Justin Swanhart
Date:
Subject: Re: (PostgreSQL 17) View usage resulting in 'ERROR: unrecognized node type: 2'
Next
From: "David G. Johnston"
Date:
Subject: Re: libq API question