From: Wei Weng <wweng@kencast.com>
To: pgsql-sql@postgresql.org
Subject: Null set
Date: 02 Jul 2001 17:57:34 -0400
Message-ID: <994111055.6586.4.camel@Monet> (raw)
This is a function I am working on:
CREATE FUNCTION authenticate(int4) RETURN boolean
AS
'SELECT * INTO tmp FROM user WHERE user_id = id;
if SET_IS_NULL(tmp)
return false;
else
return true;'
LANGUAGE 'sql';
My question is: Is there a way to implement the SET_IS_NULL function in
pl/pgsql?
--
Wei Weng
Network Software Engineer
KenCast Inc.
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: wweng@kencast.com
Subject: Re: Null set
In-Reply-To: <994111055.6586.4.camel@Monet>
* 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