Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E6D6D4772E5 for ; Thu, 7 Nov 2002 12:18:09 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id A6DA7477551 for ; Thu, 7 Nov 2002 11:58:46 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gA7Gwd522837; Thu, 7 Nov 2002 11:58:39 -0500 (EST) From: Bruce Momjian Message-Id: <200211071658.gA7Gwd522837@candle.pha.pa.us> Subject: Re: PQcmdTuples() declaration In-Reply-To: <3DCA7764.8070404@Club-Internet.fr> To: Payman Date: Thu, 7 Nov 2002 11:58:39 -0500 (EST) Cc: Michael Klatt , pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/17 X-Sequence-Number: 3265 Good catch. It looks like PQcmdStatus and PQcmdStatus are both wrong. They should be 'const' in the code. I will fix that in 7.4. --------------------------------------------------------------------------- Payman wrote: > Hi Michael > I am running version 7.2.3 on MacOS X and seam thing > I think this is a doc probleme . > Strange my doc is a 7.2.1 documentation and 7.2.3 Package. > If you change the include file you must rebuild all postgresql . > you dont have link error ? > > Payman > > >I am running version 7.1.3, installed as an RPM from Red Hat. According to > >the documentation for libpq, function PQcmdTuples is declared as > >'PQcmdTuples(const PGresult*)'. In my 'libpq-fe.h' include file it is > >declared as 'PQcmdTuples(PGresult*)' (no const). Is this an error in the > >documentation or my include file? I have changed the include file to match > >the documentation, and I haven't noticed any negative effects so far. > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073