Re: raise is not working - Mailing list pgsql-sql

From Tom Lane
Subject Re: raise is not working
Date
Msg-id 27296.1095958327@sss.pgh.pa.us
Whole thread Raw
In response to Re: raise is not working  ("CHRIS HOOVER" <CHRIS.HOOVER@companiongroup.com>)
List pgsql-sql
"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, egSQL_Str := ''select * from clmhdr'';
See the docs.
        regards, tom lane


pgsql-sql by date:

Previous
From: "CHRIS HOOVER"
Date:
Subject: Re: raise is not working
Next
From: "CHRIS HOOVER"
Date:
Subject: Re: raise is not working