pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: CHRIS HOOVER <CHRIS.HOOVER@companiongroup.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: raise is not working
Date: Thu, 23 Sep 2004 12:52:07 -0400
Message-ID: <27296.1095958327@sss.pgh.pa.us> (raw)
In-Reply-To: <NY81152d-0e236341@companiongroup.com>
References: <NY81152d-0e236341@companiongroup.com>

"CHRIS HOOVER" <CHRIS.HOOVER@companiongroup.com> writes:
> Sorry for the delay, here is the function.

> CREATE OR REPLACE FUNCTION "public"."clmhdr_grid_query" (varchar, varchar,
> varchar, varchar, varchar, varchar) RETURNS SETOF "public"."clmhdr" AS'
> ...
>   SQL_Str := "select * from clmhdr";

If those are really double quotes then I'd expect you to be getting
errors along the lines of

ERROR:  column "select * from clmhdr" does not exist

long before you get to the RAISEs.  You need doubled single quotes, eg
	SQL_Str := ''select * from clmhdr'';
See the docs.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <27296.1095958327@sss.pgh.pa.us>
Permalink:  ../27296.1095958327@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27296.1095958327@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, CHRIS.HOOVER@companiongroup.com, josh@agliodbs.com
  Subject: Re: raise is not working
  In-Reply-To: <27296.1095958327@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