Re: Casting Varchar to Numeric

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Andy Marden <amarden(at)usa(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Casting Varchar to Numeric
Date: 2001-11-27 16:16:10
Message-ID: 20011127081235.A20315-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 27 Nov 2001, Andy Marden wrote:

> In PostgreSQL, it seems that an error is thrown up if an implicit conversion
> is attempted, and the only explicit conversion seems to be to_number(value,
> format) which doesn't do what's needed generically enough.
>
> I can't believe that this isn't possible - can anyone point me in the right
> direction?

I don't think anyone's written numeric(text) yet, so there is currently
no conversion function for the two types. If you write one and name it
as above, you should be able to get conversions between the two types.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-11-27 16:47:41 Re: Timing a query
Previous Message Francisco Reyes 2001-11-27 16:15:52 Re: Timing a query