From: | Greg Smith <greg(at)2ndquadrant(dot)com> |
---|---|
To: | Alan Millington <admillington(at)yahoo(dot)co(dot)uk> |
Cc: | Postgres general mailing list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: When is an explicit cast necessary? |
Date: | 2010-04-09 14:06:52 |
Message-ID: | 4BBF347C.6080609@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Alan Millington wrote:
>
> As far as I remember, when I was using Postgres 8.1.4 that worked, but
> under Postgres 8.4.1 it results in the errors "Returned type integer
> does not match expected type smallint" and "Returned type unknown does
> not match expected type character".
>
There was a major breaking change to how casting is handled in 8.3.
Some good reading about what happened:
http://www.depesz.com/index.php/2008/05/05/error-operator-does-not-exist-integer-text-how-to-fix-it/
http://petereisentraut.blogspot.com/2008/03/readding-implicit-casts-in-postgresql.html
--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us
From | Date | Subject | |
---|---|---|---|
Next Message | Ivan Voras | 2010-04-09 14:10:42 | Upcoming hot standby replication question |
Previous Message | Corin | 2010-04-09 13:53:19 | [Fwd: Re: fulltext search stemming/ spelling problems] |