Re: Stored procs / functions - execution failure - Mailing list pgsql-general

From Tommy Gildseth
Subject Re: Stored procs / functions - execution failure
Date
Msg-id 4853F429.1030607@usit.uio.no
Whole thread Raw
In response to Stored procs / functions - execution failure  (Damian Georgiou <bchlist@gmail.com>)
List 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

pgsql-general by date:

Previous
From: Damian Georgiou
Date:
Subject: Stored procs / functions - execution failure
Next
From: Craig Ringer
Date:
Subject: Re: Stored procs / functions - execution failure