X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7E6D34763B2 for ; Tue, 13 May 2003 16:08:27 -0400 (EDT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 3D0114763A2 for ; Tue, 13 May 2003 16:08:23 -0400 (EDT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 4E723D61B; Tue, 13 May 2003 13:08:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 443085C03; Tue, 13 May 2003 13:08:24 -0700 (PDT) Date: Tue, 13 May 2003 13:08:24 -0700 (PDT) From: Stephan Szabo To: Larry Rosenman Cc: , Subject: Re: Ok, how do I debug THIS? In-Reply-To: <284870000.1052856043@lerlaptop.iadfw.net> Message-ID: <20030513130508.Q30384-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-26.4 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/246 X-Sequence-Number: 13411 On Tue, 13 May 2003, Larry Rosenman wrote: > > > --On Tuesday, May 13, 2003 14:58:01 -0500 Larry Rosenman > wrote: > > > >>> Ok, I'm blind or stupid, or quoting rules are biting my butt.... > >> > >>> record_values_new := record_values_new || '','' || > >>> || quote_literal(NEW.netblock) || ''; > >> > >> Isn't the above an unterminated literal? Do you really need the last || > >> '' part? > > Eww. I'll bet your right. Damn Cut/paste and changing logic. :-). > > > > I'll go try that. > Yep, that was it, now I get this, and I'm not sure how to deal with it... > > netmaster=# insert into networks values('111.111.111.0/24'); > WARNING: Error occurred while executing PL/pgSQL function > networks_trigger_log > WARNING: line 19 at assignment > ERROR: Function quote_literal(cidr) does not exist > Unable to identify a function that satisfies the given argument > types > You may need to add explicit typecasts Ugh. cidr doesn't appear to cast to text. You may be able to go through inet, but I'm not really sure because I haven't really used those types.