Syntac error - Mailing list pgsql-general

From Timo Erbach
Subject Syntac error
Date
Msg-id 492BE46C.8000209@netbixx.com
Whole thread Raw
In response to two or more pg installations running as the same user  ("Grzegorz Jaśkiewicz" <gryzman@gmail.com>)
Responses Re: Syntac error
List pgsql-general
Hello,

I've defined the following function and get an syntac error whle compiling.
Whats the fault?

CREATE FUNCTION "myscheme"."authenticate" () RETURNS
"pg_catalog"."refcursor" AS
$body$
DECLARE
    curAccessRights refcursor;

BEGIN
    OPEN curAccessRights FOR
        SELECT * from myscheme."tblUsers";

    RETURN curAccessRights;
END;
$body$
LANGUAGE 'sql'

Regards Timo

pgsql-general by date:

Previous
From: "Grzegorz Jaśkiewicz"
Date:
Subject: two or more pg installations running as the same user
Next
From: "A. Kretschmer"
Date:
Subject: Re: Syntac error