-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

geison correia escreveu:
> Legal Evandro, mas olhaso o que retornou:
>
> ERRO:  função to_string(time without time zone, "unknown") não
> existe HINT:  Nenhuma função corresponde com o nome informado e os
> tipos de argumento. Você precisa adicionar conversões de tipo
> explícitas. CONTEXT:  comando SQL "SELECT  to_String( $1 ,
> 'yyyy-mm-dd HH24:MI:SS')" PL/pgSQL function "filtro_de_velocidade"
> line 22 at SQL statement
>
> Diz pra eu adicionar conversões de tipo explícitas?
>
> Valeu!

Geison,

No lugar de /to_string/ use /cast/.

Ex:

SELECT CAST(current_time AS text);

ou

SELECT current_time::text;

No entanto não vi a necessidade dessa conversão de tipo no seu trecho
de código.

[ ]s
Guedes



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHML6efNj5A+QkLMoRAhxfAJ9R/1y9aQ4OO584yrCMp6LMxqJ3lwCg5Fjp
4wbBzJM8kuNUvmroYSU7rrg=
=3x5X
-----END PGP SIGNATURE-----

_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a