pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Dado Feigenblatt <dado@wildbrain.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: PLpgSQL
Date: Mon, 23 Jul 2001 10:27:43 -0400 (EDT)
Message-ID: <200107231427.f6NERhf23959@jupiter.us.greatbridge.com> (raw)
In-Reply-To: <web-89219@davinci.ethosmedia.com>

Josh Berkus wrote:
> Dado,
> 
> > But still, the $1 is still plaguing me.
> > 
> 
> Here's your problem:
> 
> > >>CREATE FUNCTION new_proj_pts_seq(int4)
> > >>RETURNS text
> > >>AS 'DECLARE
> > >>        proj_ID alias for $1;
> > >>        seq_name TEXT;
> > >>    BEGIN
> > >>        seq_name := ''proj_pts_'' || proj_ID;
> > >>        create sequence seq_name;
> > >>    END;
> > >>    RETURNS seq_name;'
> 
> This should read: RETURN seq_name
> 
> No "S".

    And should be placed before the END;

> 
> > >>LANGUAGE 'plpgsql';
> 
> -Josh

Jan

-- 

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




view thread (23+ messages)  latest in thread

Message-ID: <200107231427.f6NERhf23959@jupiter.us.greatbridge.com>
Permalink:  ../200107231427.f6NERhf23959@jupiter.us.greatbridge.com/
Also on:    postgresql.org/message-id/200107231427.f6NERhf23959@jupiter.us.greatbridge.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: JanWieck@Yahoo.com, josh@agliodbs.com, dado@wildbrain.com
  Subject: Re: Re: PLpgSQL
  In-Reply-To: <200107231427.f6NERhf23959@jupiter.us.greatbridge.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