| From: | Shane Ambler <pgsql(at)007Marketing(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Casting to money |
| Date: | 2006-10-09 08:05:56 |
| Message-ID: | 452A02E4.1030509@007Marketing.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Tom Lane wrote:
> "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> writes:
>> select '$123.45'::money
>> ERROR: invalid input syntax for type money: "$123.45"
>> select '£123.00'::money
>> ERROR: invalid input syntax for type money: "£123.00"
>
> So ... what locale are you trying this in?
>
I get the following from 8.2beta1 - looks like it doesn't like the
double quotes.
postgres=# select '123.45'::money;
money
---------
$123.45
(1 row)
postgres=# select '$123.45'::money;
money
---------
$123.45
(1 row)
postgres=# select "123.45"::money;
ERROR: column "123.45" does not exist
LINE 1: select "123.45"::money;
^
postgres=# select "$123.45"::money;
ERROR: column "$123.45" does not exist
LINE 1: select "$123.45"::money;
^
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Albe Laurenz | 2006-10-09 08:19:34 | Re: Casting to money |
| Previous Message | Dave Page | 2006-10-09 07:49:13 | Re: Casting to money |