X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8FD4D329CA4 for ; Thu, 23 Sep 2004 18:08:39 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99647-09 for ; Thu, 23 Sep 2004 17:08:15 +0000 (GMT) Received: from bcbssc.com (mail1.bcbssc.com [207.19.198.69]) by svr1.postgresql.org (Postfix) with ESMTP id 32A93329E43 for ; Thu, 23 Sep 2004 18:08:15 +0100 (BST) Received: from ([207.19.198.73]) by mail1.bcbssc.com with ESMTP id KP-TRPV8.2199247; Thu, 23 Sep 2004 13:05:47 -0400 X-Internal-ID: 4144EF290000F652 Received: from companiongroup.com (207.19.198.73) by companion1.companiongroup.com (NPlex 2.0.108); 23 Sep 2004 13:07:52 -0400 Message-ID: Date: Thu, 23 Sep 2004 13:04:00 -0400 From: "CHRIS HOOVER" To: Tom Lane Cc: pgsql-sql@postgresql.org Subject: Re: raise is not working X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/210 X-Sequence-Number: 19056 tom, 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 the function, but to no avail. That first assignment was ment to set SQL_Str to hold the value: select * from clmhdr. I don't think I need to single quotes. That would set it to 'select * from clmhdr', right??? I'm very confused as to why I'm not seeing anything here. I looked at my settings, and client_min_messages, and server_min_messages are both set to the default of notice. Thanks for any help, Chris ------------------( Forwarded letter 1 follows )--------------------- Date: Thu, 23 Sep 2004 12:52:07 -0400 To: chris.hoover Cc: Josh.Berkus[josh]@agliodbs.com.comp, pgsql-sql@postgresql.org.comp From: Tom.Lane[tgl]@sss.pgh.pa.us.comp Sender: pgsql-sql-owner+m19055@postgresql.org.comp Subject: Re: [SQL] raise is not working "CHRIS HOOVER" 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 ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings