From: sundaresan raman <netsun_r@yahoo.com>
To: pgsql-sql@postgresql.org
Date: Mon, 22 Dec 2003 02:30:43 -0800 (PST)
Message-ID: <20031222103043.50050.qmail@web41006.mail.yahoo.com> (raw)
hi,
I am new of postgre sql.im using cursors in pgsql and
getting tuples successfully returns in c++, but how
can i raise exception in the stored function?.pl
anyone help me.
This is my function :
CREATE or REPLACE FUNCTION
sp_test_validatePartnerCode(text)
RETURNS int4 AS
'
DECLARE
t_p_code ALIAS FOR $1;
curPartner CURSOR FOR SELECT partner_code FROM
test_license WHERE partner_code = t_p_code;
BEGIN
OPEN curPartner;
return curPartner;
END;
'LANGUAGE 'plpgsql' ;
advance thanks ,
sundar
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: netsun_r@yahoo.com
Subject: Re:
In-Reply-To: <20031222103043.50050.qmail@web41006.mail.yahoo.com>
* 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