Re: PG meckert *nicht* bei quotes um Zahlen !?

Thomas Markus <[email protected]>
Newsgroups gmane.comp.db.postgresql.german
Organization proventis GmbH
Message-ID <[email protected]>
Moins,

Am 06.08.2012 19:24, schrieb Patryk Kordylewski:
>
> Verstehe ich jetzt nicht, dein pg_typeof() Beispiel unterstützt doch 
> meine Aussage? :-)
na nicht ganz. Lässt sich auch verdeutlichen durch die 2 Bsp:

select 1 + '1'
macht dann int4 + unknown = int4

bzw
select 1 + '1'::text
und entsprechend int4 + text

Quotes definieren nicht den Datentyp, aber der ist entscheidend. 
Variante 2 hat glaub ich bis zur 8.3 funktioniert, dann wurde die autom. 
Konvertierung text->xxx abgeschafft in der 8.4

Gruss
Thomas

-- 
Sent via pgsql-de-allgemein mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-de-allgemein
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.