From: Alberto Cabello Sanchez <alberto@unex.es>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-interfaces@postgresql.org
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
Date: Tue, 16 Sep 2003 09:56:40 +0200
Message-ID: <20030916075640.GA10965@guadiana.unex.es> (raw)
In-Reply-To: <10317.1063637327@sss.pgh.pa.us>
References: <3F65715A.BDCAD1FB@rodos.fzk.de>
<10317.1063637327@sss.pgh.pa.us>
On Mon, Sep 15, 2003 at 10:48:47AM -0400, Tom Lane wrote:
>
> I wonder whether this behavior is appropriate for PQfnumber, though.
> It's never been documented ... and certainly should be if we decide
> we should keep it. Comments?
>
I think PQfnumber(res,PQfname(res,0))==-1 should_never_happen (c) with a
valid PGresult * res.
Maybe PQfname(res,0) should be "\"Bar\"", not "Bar".
Have a nice coding.
--
-----------------------
Alberto Cabello Sánchez
alberto@unex.es
Servicio de Informática
924 289 351
-----------------------
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: alberto@unex.es, tgl@sss.pgh.pa.us
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
In-Reply-To: <20030916075640.GA10965@guadiana.unex.es>
* 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