>Seu case retonar um text e ele é comparado com o 0 que é integer. Coverta o 0 
>para text.

>postgres=# select coalesce('0'::text, 0);
>ERROR:  COALESCE types text and integer cannot be matched
>LINE 1: select coalesce('0'::text, 0);
                                   ^
>postgres=# select coalesce('0'::text, 0::text);
 >coalesce
>----------
 >0
> (1 row)
> []s

FUNCIONOU LEGAL,

OBRIGADO PESSOAL, A TODOS OS QUE RESPONDERAM.



ABRAÇOS,

PAULO.













---
Este email foi escaneado pelo Avast antivírus.
http://www.avast.com
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a