From: Edmund Bacon <ebacon@onesystem.com>
To: pgsql-interfaces@postgresql.org
Subject: ECPGstatus documentation
Date: Thu, 06 Jan 2005 10:39:57 -0700
Message-ID: <41DD77ED.1030306@onesystem.com> (raw)
I've just spent a half hour or so trying to figure out why a call to
ECPGstatus() was complaining about the wrong number of arguments. The
documentation states:
ECPGstatus() returns true if you are connected to a database and false
if not.
However, digging through the archives, I found the following from Jan 7,
2000:
> ECPGstatus() seems to have changed to ECPGstatus (int, const char);
> What exactly am I supposed to pass to this function?
The first argument is the line-number (i.e. __LINE__). The second is the
connection name. If you do not have different connections you can use
NULL as connection name or just use "CURRENT".
Michael
So, could either the documentation be updated to reflect the correct
parameters to ECPGstatus() or perhaps
src/interfaces/ecpg/preproc/preproc.y can be patched to Do The Right
Thing? If I had any experience with bison/yacc/lex/flex/whatever, I'd
take a look at it, but as I don't ... :-(
Thanks.
--
Edmund Bacon <ebacon@onesystem.com>
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: pgsql-interfaces@postgresql.org
Cc: ebacon@onesystem.com
Subject: Re: ECPGstatus documentation
In-Reply-To: <41DD77ED.1030306@onesystem.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox