Re: Cast Problem - varchar() problem - Mailing list pgsql-novice

From Tom Lane
Subject Re: Cast Problem - varchar() problem
Date
Msg-id 23694.1123796944@sss.pgh.pa.us
Whole thread Raw
In response to Re: Cast Problem - varchar() problem  (<operationsengineer1@yahoo.com>)
List pgsql-novice
<operationsengineer1@yahoo.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

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Forcing WAL switch
Next
From: "Walker, Jed S"
Date:
Subject: Re: Forcing WAL switch