pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Itai Zukerman <zukerman@math-hat.com>
To: pgsql-sql@postgresql.org
Subject: Just 'sql'?
Date: Sat, 29 Jul 2000 09:29:44 -0400
Message-ID: <E13IWgS-0001ps-00@matt.w80.math-hat.com> (raw)

Hi, I have this:

CREATE FUNCTION queue_add() RETURNS OPAQUE AS 'BEGIN
  INSERT INTO queue ( count, price ) VALUES ( NEW.count, NEW.price );
  RETURN NEW;
END;' LANGUAGE 'plpgsql' ;

I can't figure out how to do this with LANGUAGE 'sql'.  Any ideas?

Thanks,
-itai



Message-ID: <E13IWgS-0001ps-00@matt.w80.math-hat.com>
Permalink:  ../E13IWgS-0001ps-00@matt.w80.math-hat.com/
Also on:    postgresql.org/message-id/E13IWgS-0001ps-00@matt.w80.math-hat.com

 · 

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 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-sql@postgresql.org
  Cc: zukerman@math-hat.com
  Subject: Re: Just 'sql'?
  In-Reply-To: <E13IWgS-0001ps-00@matt.w80.math-hat.com>
  References: <E13IWgS-0001ps-00@matt.w80.math-hat.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