pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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.





Message-ID: <994111055.6586.4.camel@Monet>
Permalink:  ../994111055.6586.4.camel@Monet/
Also on:    postgresql.org/message-id/994111055.6586.4.camel@Monet

 · 

reply

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