libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()? - Mailing list pgsql-interfaces

From Jeroen Vermeulen
Subject libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
Date
Msg-id CA+zULE6XGuMU8ND38ABLxgBTN-YFzcnq+MCVb6Tyxgg6ZxYFXw@mail.gmail.com
Whole thread Raw
Responses Re: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
List 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


pgsql-interfaces by date:

Previous
From: Maxwell Dreytser
Date:
Subject: Re: RowDescription for a function does not include table OID
Next
From: Tom Lane
Date:
Subject: Re: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?