Re: Strange Behavior when calling a C function by a plpgsql stored prcedure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alban Médici <amedici(at)fr(dot)netcentrex(dot)net>
Cc: plpgsql <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Strange Behavior when calling a C function by a plpgsql stored prcedure
Date: 2002-05-03 15:29:55
Message-ID: 7503.1020439795@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Alban =?ISO-8859-1?Q?M=E9dici?= <amedici(at)fr(dot)netcentrex(dot)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 unknown to CREATE FUNCTION. You'll have to make two
distinct functions if you want to have two calling styles.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Pfau 2002-05-03 15:56:00 Re: Strange Behavior when calling a C function by a plpgsql stored prcedure
Previous Message Veit Guna 2002-05-03 15:14:26 Postgresql JDBC Timestamp problem