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

SQLDescribeCol and column alias

From: Gilles DAROLD <gilles(at)darold(dot)net>
To: pgsql-odbc(at)postgresql(dot)org
Subject: SQLDescribeCol and column alias
Date: 2001-11-15 20:23:58
Message-ID: 3BF4245E.7CFD0154@darold.net (view raw or flat)
Thread:
Lists: pgsql-odbc
Hi all,

It seems to me that SQLDescribeCol return the realname of a column.
For example when I run a query like that:

    SELECT mycol AS othername FROM mytable;

it returns 'mycol' and not 'othername'. Am I wrong or is there's an
other way to have the alias returned ?

Regards

Gilles Darold


In response to

Responses

pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2001-11-16 00:08:50
Subject: Re: Access 2000 ODBC table links
Previous:From: Andrea AimeDate: 2001-11-15 07:23:58
Subject: Re: PostgreSQL ODBC Driver Website

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