Re: Stored procs / functions - execution failure

From: Tommy Gildseth <tommy(dot)gildseth(at)usit(dot)uio(dot)no>
To: Damian Georgiou <bchlist(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Stored procs / functions - execution failure
Date: 2008-06-14 16:39:05
Message-ID: 4853F429.1030607@usit.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Damian Georgiou wrote:
> Hi All,
>
> I am having an issue with a function where it used to run in a previous
> installation of postgres under windows. The box has since been
>
> ERROR: function sp_schedulefromdate("unknown") does not exist
> LINE 1: select sp_scheduleFromDate('2008-01-01');
> ^
> HINT: No function matches the given name and argument types. You may
> need to add explicit type casts.

I suppose you need to add an explicit cast, as it says in the error
message. This means that instead of sp_scheduleFromDate('2008-01-01');
which is what you got now, you use
sp_scheduleFromDate('2008-01-01'::date); which seems to be what the
function expects.

--
Tommy Gildseth

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-06-14 16:42:59 Re: Stored procs / functions - execution failure
Previous Message Damian Georgiou 2008-06-14 16:06:27 Stored procs / functions - execution failure