From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)atentus(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Making cstring type less pseudo and more real |
Date: | 2002-08-22 22:05:00 |
Message-ID: | 1469.1030053900@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Alvaro Herrera <alvherre(at)atentus(dot)com> writes:
> alvh=> CREATE TABLE money_test (a money);
> CREATE TABLE
> alvh=> INSERT INTO money_test VALUES (2);
> ERROR: column "a" is of type 'money' but expression is of type 'integer'
> You will need to rewrite or cast the expression
> alvh=> INSERT INTO money_test VALUES ('2');
> ERROR: Bad money external representation 2
> alvh=> INSERT INTO money_test VALUES ('2.00');
> ERROR: Bad money external representation 2.00
> alvh=> INSERT INTO money_test VALUES ('$2.00');
> ERROR: Bad money external representation $2.00
> alvh=> INSERT INTO money_test VALUES ('2'::money);
> ERROR: Bad money external representation 2
What does "show lc_monetary" say? I think you may be in a non-US locale.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-08-22 22:07:05 | My head is spinning |
Previous Message | Bruce Momjian | 2002-08-22 21:55:30 | Re: CVS broken - large file support? |