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
|
Список | 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 по дате отправления: