Re: to_number

From: "Tomasz Myrta" <jasiek(at)klaster(dot)net>
To: kar(at)kakidata(dot)dk, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: to_number
Date: 2003-03-30 06:56:26
Message-ID: 20030330155626.M93108@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> # SELECT * FROM pg_settings WHERE name LIKE 'lc_%';
> name | setting
> -------------+---------
> lc_messages | unset
> lc_monetary | C
> lc_numeric | C
> lc_time | C
> (4 rows
>
> SELECT price, to_number(price,'9999D9)') FROM orderline WHERE sku =
> '01-0082-4';
> price | to_number
> -------+-----------
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> 429,5 | 4295
> (10 rows)
>
> How can to_number work with Danish locale?

It looks like you have "C" locale instead of Danish one. What happens when
you change your system locale to Danish?.

Regards,
Tomasz Myrta

In response to

  • to_number at 2003-03-30 12:54:29 from Kaare Rasmussen

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Kaare Rasmussen 2003-03-30 12:54:29 to_number
Previous Message Vernon 2003-03-29 23:28:05 Re: Off topic : world database