Re: Upgrade 8.3

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: "E(dot)J(dot) Moloney" <emoloney(at)moloneyodeaassociates(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Upgrade 8.3
Date: 2008-04-18 18:27:27
Message-ID: 4808E80F.9000204@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rodrigo Gonzalez 2008-04-18 18:30:17 Re: Upgrade 8.3
Previous Message Joshua D. Drake 2008-04-18 18:15:09 Re: In the belly of the beast (MySQLCon)