Re: ColumnName and ColumnNumber in libpq (C interface) - Mailing list pgsql-interfaces

From Alberto Cabello Sanchez
Subject Re: ColumnName and ColumnNumber in libpq (C interface)
Date
Msg-id 20030916075640.GA10965@guadiana.unex.es
Whole thread Raw
In response to Re: ColumnName and ColumnNumber in libpq (C interface)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ColumnName and ColumnNumber in libpq (C interface)
List pgsql-interfaces
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
-----------------------


pgsql-interfaces by date:

Previous
From: Christoph Haller
Date:
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
Next
From: Christoph Haller
Date:
Subject: Re: Replicate database