"CHRIS HOOVER" <[EMAIL PROTECTED]> writes:
> They were a double quote. I switched all of the double quotes out for single
> quotes but still not go. The function appears to run and return no results
> but, I don't get any raises. I have even tried moving the raises to be fire
> first lines in th
[EMAIL PROTECTED]
Subject: Re: [SQL] raise is not working
"CHRIS HOOVER" <[EMAIL PROTECTED]> writes:
> Sorry for the delay, here is the function.
> CREATE OR REPLACE FUNCTION "public"."clmhdr_grid_query" (varchar, varchar,
> varchar, varchar, varchar
"CHRIS HOOVER" <[EMAIL PROTECTED]> 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
;SQL STRING = %'''', SQL_Str;
raise exception ''''THIS SUCKS!'''';
for Clmhdr_rec in execute SQL_Str loop
return next Clmhdr_rec;
end loop;
return;
end;
'LANGUAGE 'plpgsql' VOLATILE RETURNS NULL ON NULL IN
"CHRIS HOOVER" <[EMAIL PROTECTED]> writes:
> SQL_Str is defined as a varchar. Neither of the raise calls have done
> anything, but I don't get any errors either.
The only way RAISE EXCEPTION "isn't going to do anything" is if control
doesn't get to it. My bet would be that you are invoking some
Chris,
> I have tried setting both server_min_messages (all the way down to debug5),
> and client_min_messages (to debug1), and I still do not get a responce. I
> did bounce the server after these changes.
Please paste your entire function definition, and a copy of your interactive
session on p
Hello again everyone.
I need some help once again. I am following the postgresql pl/pgsql docs and
trying to have my function show me the query it is trying to run since it not
returning the expected results. However, it does not appear that the raise
option is working. Can anyone please point