Re: Cast Problem - varchar() problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: operationsengineer1(at)yahoo(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Cast Problem - varchar() problem
Date: 2005-08-11 21:49:04
Message-ID: 23694.1123796944@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<operationsengineer1(at)yahoo(dot)com> writes:
> my apologies again. datatype was text in 7.4 and
> varchar in 7.3... the database likely isn't the
> cause, rather, my different datatypes is probably the
> problem.

You could do
ORDER BY varcharcolumn::text::integer;

Experimenting, it looks like 8.0 will allow the direct cast but 7.4 and
7.3 not.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Walker, Jed S 2005-08-11 22:01:46 Re: Forcing WAL switch
Previous Message Tom Lane 2005-08-11 21:38:23 Re: Forcing WAL switch