public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jeroen Vermeulen <[email protected]>
To: [email protected]
Subject: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
Date: Sat, 21 Dec 2024 13:54:32 +0100
Message-ID: <CA+zULE6XGuMU8ND38ABLxgBTN-YFzcnq+MCVb6Tyxgg6ZxYFXw@mail.gmail.com> (raw)

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


view thread (4+ messages)  latest in thread

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]
  Subject: Re: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
  In-Reply-To: <CA+zULE6XGuMU8ND38ABLxgBTN-YFzcnq+MCVb6Tyxgg6ZxYFXw@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