From: Mario Alberto Soto Cordones <mario_soto@compuall.cl>
To: pgsql-admin@postgresql.org
Subject: PROBLEM WITH FUNCTIONS IN POSTGRES
Date: Thu, 20 Mar 2003 13:07:29 -0400 (CLT)
Message-ID: <1454.192.168.1.100.1048180049.squirrel@mail.compuall.cl> (raw)
Hi...
i create a function in postgres to return a data of a table but when try
to create say
PostgreSQL ha dicho: ERROR: parser: parse error at or near "text"
Your query:
CREATE FUNCTION sinomemp(text)
RETURNS text
AS 'DECLARE sinomemp TEXT;
BEGIN
SELECT name
FROM simaemp
WHERE cod = $1;
RETURN sinomemp;
END;'
LANGUAGE 'sql'
please help me
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mario_soto@compuall.cl
Subject: Re: PROBLEM WITH FUNCTIONS IN POSTGRES
In-Reply-To: <1454.192.168.1.100.1048180049.squirrel@mail.compuall.cl>
References: <1454.192.168.1.100.1048180049.squirrel@mail.compuall.cl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox