From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
---|---|
To: | Dado Feigenblatt <dado(at)wildbrain(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Re: PLpgSQL |
Date: | 2001-07-21 16:30:27 |
Message-ID: | web-89219@davinci.ethosmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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".
> >>LANGUAGE 'plpgsql';
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 2 bytes |
unknown_filename | text/plain | 2 bytes |
unknown_filename | text/plain | 2 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Domingo Alvarez Duarte | 2001-07-22 10:14:46 | unique index on more than one field using functions |
Previous Message | Fons Rave | 2001-07-21 12:15:26 | Re: Records exactly the same. |