Re: Problems Testing User-Defined Function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rommel the iCeMAn" <icecrew(at)gmail(dot)com>
Cc: "PostgreSQL SQL Mailing List" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Problems Testing User-Defined Function
Date: 2006-06-10 18:11:21
Message-ID: 1499.1149963081@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Rommel the iCeMAn" <icecrew(at)gmail(dot)com> writes:
> Thanks for the input so far. No it wasn't a direct paste, what I did in fact
> type was SELECT sp_insert_manifest('me', 'me(at)you(dot)com', 'me(at)you(dot)com',
> 'test.txt', NULL, '2006/06/09'). The error message said something like
> function sp_insert_manifest(character varying, character varying, character
> varying, character varying, "unknown", timestamp) does not exist.

You were asked for the exact error message, not an approximation. Given
that input I'd have expected all the arguments to show as "unknown" in
the error message, because none of them have well-defined types.

> I'll investigate the "CALLED ON NULL INPUT" option that Jim suggested.

Since that's the default anyway, adding it won't help you. I suspect
you need to be looking for more prosaic issues, like whether the function
name is spelled correctly.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Leif B. Kristensen 2006-06-11 12:53:07 Finding multiple events of the same kind
Previous Message Rommel the iCeMAn 2006-06-10 01:19:51 Re: Problems Testing User-Defined Function