libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?

From: Jeroen Vermeulen <jtvjtv(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
Date: 2024-12-21 12:54:32
Message-ID: CA+zULE6XGuMU8ND38ABLxgBTN-YFzcnq+MCVb6Tyxgg6ZxYFXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Any objections to changing these two libpq functions' PGresult* parameters
to be const?

So "char * PQcmdStatus(PGresult *)" would become "char *PQcmdStatus(const
PGresult *)", and "char *PQcmdTuples(PGresult *)" would become "char
*PQcmdTuples(const PGresult *)".

Jeroen

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2024-12-21 15:56:31 Re: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
Previous Message Tom Lane 2024-06-21 16:17:46 Re: RowDescription for a function does not include table OID