From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "CHRIS HOOVER" <CHRIS(dot)HOOVER(at)companiongroup(dot)com> |
Cc: | Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: raise is not working |
Date: | 2004-09-23 16:52:07 |
Message-ID: | 27296.1095958327@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
"CHRIS HOOVER" <CHRIS(dot)HOOVER(at)companiongroup(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | CHRIS HOOVER | 2004-09-23 17:04:00 | Re: raise is not working |
Previous Message | CHRIS HOOVER | 2004-09-23 16:31:00 | Re: raise is not working |