Skip site navigation (1) Skip section navigation (2)

Re: ColumnName and ColumnNumber in libpq (C interface)

From: Alberto Cabello Sanchez <alberto(at)unex(dot)es>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
Date: 2003-09-16 07:56:40
Message-ID: 20030916075640.GA10965@guadiana.unex.es (view raw or flat)
Thread:
Lists: 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(at)unex(dot)es
Servicio de Informática
924 289 351
-----------------------

In response to

Responses

pgsql-interfaces by date

Next:From: Christoph HallerDate: 2003-09-16 13:12:00
Subject: Re: Replicate database
Previous:From: Christoph HallerDate: 2003-09-16 07:51:59
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group