pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Haller <ch@rodos.fzk.de>
Cc: alberto@unex.es
Cc: pgsql-interfaces@postgresql.org
Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
Date: Mon, 15 Sep 2003 10:48:47 -0400
Message-ID: <10317.1063637327@sss.pgh.pa.us> (raw)
In-Reply-To: <3F65715A.BDCAD1FB@rodos.fzk.de>
References: <3F65715A.BDCAD1FB@rodos.fzk.de>

Christoph Haller <ch@rodos.fzk.de> writes:
>> I thougth running this helloworldish C program:
>> should print
>> Bar
>> 0
>> 
>> but stdout shows
>> Bar
>> -1
>> 

> All names are folded to lowercase, except enclosed in double quotes. So
> printf("%d\n",PQfnumber(res,"\"Bar\""));
> gives you the right result.

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?

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <10317.1063637327@sss.pgh.pa.us>
Permalink:  ../10317.1063637327@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10317.1063637327@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, ch@rodos.fzk.de, alberto@unex.es
  Subject: Re: ColumnName and ColumnNumber in libpq (C interface)
  In-Reply-To: <10317.1063637327@sss.pgh.pa.us>

* 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