RE: [INTERFACES] money format

From: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
To: "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>, pgsql-interfaces(at)postgreSQL(dot)org
Subject: RE: [INTERFACES] money format
Date: 1998-11-11 19:03:15
Message-ID: F10BB1FAF801D111829B0060971D839F4F2EC0@cpsmail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> insert into table values (100);
> insert into table values (100.);
> insert into table values (100.00);
>
> Error while executing the query;
> WARN:Bad money external representation
> 100.000000 (1)
>
> I've searched the docs, but I can not find how to enter a value in a
> money
> field. It would seem that any number should sqeeze in, even with
> forced
> rounding by the backend. It shouldn't be this hard ;-(
>
> Tried with psql, libpq, BDD.
>
> Ken
>
Don't what version you are using but using '100.23' works for me.
-DEJ

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1998-11-11 21:12:59 SOURCE CODE FOR ODBC DRIVER v.06.40.0001
Previous Message Ken J. Wright 1998-11-11 18:09:42 money format