pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Larry Rosenman <ler@lerctr.org>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: josh@agliodbs.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Ok, how do I debug THIS?
Date: Tue, 13 May 2003 15:00:43 -0500
Message-ID: <284870000.1052856043@lerlaptop.iadfw.net> (raw)
In-Reply-To: <283090000.1052855881@lerlaptop.iadfw.net>
References: <20030513125451.J30140-100000@megazone23.bigpanda.com>
	<283090000.1052855881@lerlaptop.iadfw.net>



--On Tuesday, May 13, 2003 14:58:01 -0500 Larry Rosenman <ler@lerctr.org> 
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
netmaster=#
>
> LER
>
>
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
>
>



-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749




view thread (14+ messages)  latest in thread

Message-ID: <284870000.1052856043@lerlaptop.iadfw.net>
Permalink:  ../284870000.1052856043@lerlaptop.iadfw.net/
Also on:    postgresql.org/message-id/284870000.1052856043@lerlaptop.iadfw.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ler@lerctr.org, sszabo@megazone23.bigpanda.com, josh@agliodbs.com
  Subject: Re: Ok, how do I debug THIS?
  In-Reply-To: <284870000.1052856043@lerlaptop.iadfw.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox