Re: Strange Behavior when calling a C function by a plpgsql stored prcedure - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Strange Behavior when calling a C function by a plpgsql stored prcedure
Date
Msg-id 7503.1020439795@sss.pgh.pa.us
Whole thread Raw
In response to Strange Behavior when calling a C function by a plpgsql stored prcedure  (Alban Médici <amedici@fr.netcentrex.net>)
List pgsql-bugs
Alban Médici <amedici@fr.netcentrex.net> writes:
> extern "C" My_Mem_Macro_Parser_Integer myMethod( int nbFields, int toto
> = -1)

Default parameters are a C++-ism that doesn't exist in C, and certainly
is entirely iso-8859-1 to CREATE FUNCTION.  You'll have to make two
distinct functions if you want to have two calling styles.
        regards, tom lane


pgsql-bugs by date:

Previous
From: Alban Médici
Date:
Subject: Strange Behavior when calling a C function by a plpgsql stored prcedure
Next
From: "Tom Pfau"
Date:
Subject: Re: Strange Behavior when calling a C function by a plpgsql stored prcedure