Re: [INTERFACES] PL_na undeclared - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [INTERFACES] PL_na undeclared
Date
Msg-id 16236.938733131@sss.pgh.pa.us
Whole thread Raw
In response to Re: [INTERFACES] PL_na undeclared  (Brian P Millett <bpm@ec-group.com>)
List pgsql-interfaces
Brian P Millett <bpm@ec-group.com> writes:
> So if the PERLV is greater than 5.004_76 (When all of the internals
> started to be renamed) then the file perl_PL.h is included.  The
> perl_PL.h is:

> #ifndef patchlevel
> #define patchlevel PL_patchlevel
> #endif
> [ and a lot more in the same vein ]

Ugh.  I was afraid the answer would be just that dirty :-(

Would someone volunteer to do the legwork on teaching the postgres perl5
module about this?  I had a TODO item to look into it myself, but it
could be a long time before it gets to the top of my queue.

Probably we ought to modify the Pg.pm file to use the new names, and
then conditionally include macro definitions to substitute the old
names, rather than the other way around as your example has it.
Forward thinking and all that.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "Dana L. Hones"
Date:
Subject: ECPG and Table/Field name case sensitivity
Next
From: Thomas Lockhart
Date:
Subject: Re: [INTERFACES] SSL and ODBC