Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6LGUSa98120 for ; Sat, 21 Jul 2001 12:30:28 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 89219; Sat, 21 Jul 2001 09:30:27 -0700 From: "Josh Berkus" Subject: Re: Re: PLpgSQL To: Dado Feigenblatt Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Sat, 21 Jul 2001 09:30:27 -0700 Message-ID: In-Reply-To: <3B58C021.2040209@wildbrain.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_===89219====davinci.ethosmedia.com===_" X-Archive-Number: 200107/296 X-Sequence-Number: 4099 This is a multi-part MIME message --_===89219====davinci.ethosmedia.com===_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit 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@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco --_===89219====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===89219====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===89219====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===89219====davinci.ethosmedia.com===_--