Re: ECPGttype/OID

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Pawel Hudak <pawel(dot)hudak(at)nagler-company(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ECPGttype/OID
Date: 2006-12-03 13:26:16
Message-ID: 20061203132616.GA32110@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Tue, Nov 28, 2006 at 11:15:49AM +0100, Pawel Hudak wrote:
> I'm a little confused regarding type enumerations/defines.
>
> There is set of OID defines in pg_type.h.

These define the OIDs used in the database itself.

> But there is also file ecpgtype.h which contains enumeration ECPGttype.

These define the numbers used by ecpg to define its datatypes.

> Is there any mapping between OID and ECPGttype?

No. Well not really. ECPG does have a few conversion routines it needs
internally, but a full fledged mapping doesn't really exist. But then
you probably don't need one because the client-server conversation is
done in ascii most of the time and ecpg takes care of all the
conversions needed.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Keary Suska 2006-12-04 17:25:12 Re: query optimization on prepared statement through
Previous Message Kevin Fallis 2006-12-01 19:10:34 FW: query optimization on prepared statement through connection vi libpq