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

From Craig Ringer
Subject Re: Stored procs / functions - execution failure
Date
Msg-id 4853F513.3060501@postnewspapers.com.au
Whole thread Raw
In response to Stored procs / functions - execution failure  (Damian Georgiou <bchlist@gmail.com>)
List pgsql-general
Damian Georgiou wrote:

> 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
> decommissioned so I am unable to check exactly what version it was though it
> was version 8 under winxp.
>
> I am now running postgres 8.2.5 Under OSX 10.5.3
>
> Now I have imported the data, the function is available in the list however
> I get this error when I try to run it

> ERROR:  function sp_schedulefromdate("unknown") does not exist
> LINE 1: select sp_scheduleFromDate('2008-01-01');

OK, first guess: you've defined your function with a mixed case name,
and you're being bitten by case folding. You probably meant to write:

    select "sp_scheduleFromDate"('2008-01-01')

not

    select sp_scheduleFromDate('2008-01-01')

The former suppresses lowercase folding; the latter does not.

--
Craig Ringer

pgsql-general by date:

Previous
From: Tommy Gildseth
Date:
Subject: Re: Stored procs / functions - execution failure
Next
From: Michael Fuhr
Date:
Subject: Re: why sequential scan is used on indexed column ???