Re: understanding .description newbie ?

johnf <jfabiani-rLSQ/[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Tuesday 05 May 2009 09:59:29 am johnf wrote:
> Hi,
> dbapi 2.0 defines what a cursor.description returns.  In my case the
> cursor.description returns {fieldName, someNumber, None,...}.  I would like
> to better understand what the "someNumber" means.  How does python know
> that '1043' is a varchar (python string??).
>
> Thanks in advance.

A little more reseach revealed that the numbers are defined in pg_types.h ( a 
header for postgres).  If this is wrong would someone take the time to let me 
know.  From what I see it is a very close match.

-- 
John Fabiani
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.