Function

From: "Sumita Biswas (sbiswas)" <sbiswas(at)cisco(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Function
Date: 2004-02-12 11:40:38
Message-ID: 01a001c3f15d$099afa70$2a154d0a@apac.cisco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi All,

This function of mine gives a Parse Error:

CREATE or replace FUNCTION Proc_ConferenceSummary(date,date,int,int,int)
RETURNS SETOF tbl_error_master AS
'
declare
li_CallManagerId int;
begin
select * FROM tbl_error_master;
end;
'
LANGUAGE SQL;

psql:Proc_ConferenceSummary.sql:9: ERROR: parser: parse error at or
near "int" at character 31

I don't see any Syntax Error. Can you please let me know what can be the
issue?

Regards,
Sumita

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Kumar 2004-02-12 12:31:12 How to avoid nulls while writing string for dynamic query
Previous Message Fredrik Wendt 2004-02-12 10:06:26 ORDER BY TIMESTAMP_column ASC, NULL first