From: | Euler Taveira de Oliveira <euler(at)timbira(dot)com> |
---|---|
To: | Steve Clark <sclark(at)netwolves(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: ecpg produces code that won't compile |
Date: | 2008-03-01 19:50:46 |
Message-ID: | 47C9B396.1050302@timbira.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Steve Clark wrote:
> ecpg_test.pgc:36: error: invalid application of `sizeof' to incomplete type
> `varchar_h_tunnel_active'
It seems that are you using implicit cast from varchar to inet. It
doesn't work in 8.3 anymore. You need to cast before calling the
function, ie, func(col::inet).
euler=# select '127.0.0.1/32'::varchar = '127.0.0.1/32'::inet;
ERROR: operator does not exist: character varying = inet
LINHA 1: select '127.0.0.1/32'::varchar = '127.0.0.1/32'::inet;
^
DICA: No operator matches the given name and argument type(s). You
might need to add explicit type casts.
euler=# select '127.0.0.1/32'::varchar::inet = '127.0.0.1/32'::inet;
?column?
----------
t
(1 registro)
--
Euler Taveira de Oliveira
http://www.timbira.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-03-02 00:12:16 | Re: BUG #3997: Venezuela TIMEZONE |
Previous Message | Manos Tsagias | 2008-03-01 18:22:41 | Re: BUG #4004: out of memory |