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

Re: libECPG: Warning: get descriptor: 7.1 and 7.2 arenot

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christof Petig <christof(at)petig-baender(dot)de>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-interfaces(at)postgresql(dot)org, Michael Meskes <meskes(at)postgresql(dot)org>
Subject: Re: libECPG: Warning: get descriptor: 7.1 and 7.2 arenot
Date: 2001-10-08 14:35:00
Message-ID: 649.1002551700@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
Christof Petig <christof(at)petig-baender(dot)de> writes:
> IIRC the list of descriptor types is terminated by ECPGd_EODT. So the new
> library can't figure out where the old code's argument stop.
> Fix: put ECPGd_cardinality behind ECPGd_EODT.
> I reordered them because of logical considerations, maybe we should weight
> binary compatibility more than beautiful-sortedness of enum values.

Is that a safe fix?  If there are any places that assume that ECPGd_EODT
is the largest value of this enum type (eg, for sizing arrays) then
I think you've got a problem.

			regards, tom lane

In response to

Responses

pgsql-interfaces by date

Next:From: corzDate: 2001-10-09 06:25:34
Subject: mod_auth_pgsql
Previous:From: Arsalan ZaidiDate: 2001-10-08 10:03:11
Subject: Re: java.lang.OutOfMemory Exception with a large number of inserts

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