Search Postgresql Archives

Re: Upgrade 8.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



E.J. Moloney wrote:
I am running the following query

update tempportfwdconnectiona set srcid=interface.objectid from interface where tempportfwdconnectiona.hostid=interface.host and tempportfwdconnectiona.spantreeport=interface.stpport

For application reasons the spantreeport in one table is a text field and an integer in the other.

I am getting a cast error when I run this query which did work 8.2x, I can't make both fields the same type is there any work around any body can suggest.

http://www.postgresql.org/docs/8.3/interactive/release-8-3.html#AEN85822

Try using an explicit cast, like CAST(spantreeport AS text) OR CAST(spantreeport AS integer) .

--
Craig Ringer


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux