pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Graham Vickrage <graham@digitalplanit.com>
Cc: Postgres SQL <pgsql-sql@postgresql.org>
Subject: Re: quotes nightmare!
Date: Fri, 22 Feb 2002 09:28:56 -0700
Message-ID: <20020222162856.GC959@cc.usu.edu> (raw)
In-Reply-To: <NDBBJABDILOPAOOMFJHOGECGDEAA.graham@digitalplanit.com>
References: <NDBBJABDILOPAOOMFJHOGECGDEAA.graham@digitalplanit.com>

On Fri, Feb 22, 2002 at 01:18:51PM +0000, Graham Vickrage wrote:
> BEGIN
> 	EXECUTE ''
> 	CREATE FUNCTION _test'' || $1 || '' () RETURNS int AS ''

When you enter these '' you are ending the EXECUTE block. If you don't
want to end thit EXECUTE block, then you have to espace each of these
quotes.

> Could anyone tell me which bit is causing the problem as I am now completely
> lost, the error message mentions is near LANGUAGE.

You should look at:

http://www.postgresql.org/idocs/index.php?plpgsql-porting.html#PLPGSQL-QUOTING-TABLE
http://www.postgresql.org/idocs/index.php?plpgsql-porting.html#PLPGSQL-PORTING-NASTYQUOTE

-Roberto

-- 
+----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net/ 
       http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer    
Advisor: The guy who told you how to screw up



view thread (3+ messages)

Message-ID: <20020222162856.GC959@cc.usu.edu>
Permalink:  ../20020222162856.GC959@cc.usu.edu/
Also on:    postgresql.org/message-id/20020222162856.GC959@cc.usu.edu

 · 

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: rmello@cc.usu.edu, graham@digitalplanit.com
  Subject: Re: quotes nightmare!
  In-Reply-To: <20020222162856.GC959@cc.usu.edu>

* 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