Re: Ok, how do I debug THIS?

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: josh(at)agliodbs(dot)com, pgsql-sql(at)postgresql(dot)org, tgl(at)sss(dot)pgh(dot)pa(dot)us
Subject: Re: Ok, how do I debug THIS?
Date: 2003-05-13 20:13:21
Message-ID: 295850000.1052856801@lerlaptop.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

--On Tuesday, May 13, 2003 13:08:24 -0700 Stephan Szabo
<sszabo(at)megazone23(dot)bigpanda(dot)com> wrote:

> On Tue, 13 May 2003, Larry Rosenman wrote:
>
>>
>>
>> --On Tuesday, May 13, 2003 14:58:01 -0500 Larry Rosenman <ler(at)lerctr(dot)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
>
> 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.
looks like I can, **BUT** is this the RIGHT thing? I suspect it SHOULD
cast to
text. IMNSHO.

Tom,
Comments?

LER

>

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-05-13 20:21:39 Re: Ok, how do I debug THIS?
Previous Message Stephan Szabo 2003-05-13 20:08:24 Re: Ok, how do I debug THIS?