public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Jeroen Vermeulen <[email protected]>
Cc: [email protected]
Subject: Re: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
Date: Sat, 21 Dec 2024 11:06:58 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <CA+zULE6XGuMU8ND38ABLxgBTN-YFzcnq+MCVb6Tyxgg6ZxYFXw@mail.gmail.com>
	<[email protected]>

I wrote:
> Both of those return pointers to res->cmdStatus, so it would not make
> any sense to const-ify the argument unless you also const-ify the
> result; which would cause compiler warnings for users.  I'm pretty
> sure we've explicitly rejected making this change for that reason.

[ digs in archives... ]

See previous discussions here:

https://www.postgresql.org/message-id/flat/NCBBLFLGLEIDHCJLONHNKEDGFJAA.mdklatt%40ou.edu

and here:

https://www.postgresql.org/message-id/flat/E1RaRtZ-0008aS-MK%40hans3

			regards, tom lane






view thread (4+ messages)

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], [email protected]
  Subject: Re: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?
  In-Reply-To: <[email protected]>

* 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