Re: ecpg produces code that won't compile

Поиск
Список
Период
Сортировка
Искать
От
Euler Taveira de Oliveira
Тема
Re: ecpg produces code that won't compile
Дата
Msg-id
47C9B396.1050302@timbira.com
Ответ на
Список
Дерево обсуждения
ecpg produces code that won't compile Steve Clark <sclark@netwolves.com>
Re: ecpg produces code that won't compile Euler Taveira de Oliveira <euler@timbira.com>
Re: ecpg produces code that won't compile Michael Meskes <meskes@postgresql.org>
Re: ecpg produces code that won't compile Steve Clark <sclark@netwolves.com>
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 по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: BUG #4004: out of memory
От: Manos Tsagias
Дата:
Сообщение: Re: BUG #4004: out of memory
FAQ