Re: ecpg produces code that won't compile - Mailing list pgsql-bugs

From Euler Taveira de Oliveira
Subject Re: ecpg produces code that won't compile
Date
Msg-id 47C9B396.1050302@timbira.com
Whole thread Raw
In response to ecpg produces code that won't compile  (Steve Clark <sclark@netwolves.com>)
Responses Re: ecpg produces code that won't compile
List 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/

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #4004: out of memory
Next
From: "Manos Tsagias"
Date:
Subject: Re: BUG #4004: out of memory