pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: proghome@silesky.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Error message with a SQL function
Date: Sat, 09 Aug 2003 11:16:20 -0400
Message-ID: <5657.1060442180@sss.pgh.pa.us> (raw)
In-Reply-To: <85898f7e.0308080613.6cfb3e7c@posting.google.com>
References: <85898f7e.0308080613.6cfb3e7c@posting.google.com>

proghome@silesky.com (krystoffff) writes:
> CREATE FUNCTION update_affiliate(int,double precision,double
> precision) RETURNS void AS ' UPDATE affiliate SET balance=balance +
> $2, balance_in_points=balance_in_points + ( $2 / $3 ) WHERE id = $1; '
> LANGUAGE 'sql';

I don't believe there was a type "void" in PG 7.1.  IIRC, back then the
custom was to say "RETURNS opaque" in this situation.

It's probably time for you to update to something newer ...

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <5657.1060442180@sss.pgh.pa.us>
Permalink:  ../5657.1060442180@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5657.1060442180@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, proghome@silesky.com
  Subject: Re: Error message with a SQL function
  In-Reply-To: <5657.1060442180@sss.pgh.pa.us>

* 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