Skip site navigation (1) Skip section navigation (2)

HELP ! With Money type

From: Terry Hampton <thampton(at)limacorp(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: HELP ! With Money type
Date: 2004-07-23 12:36:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin


	Just ran across an odd situation.
	I have defined a field:

  amount       | money                    | not null default ''

	Works fine until the dollar amounts get
	very large  -  into the tens of millions.
	At that point, the actual amount stored
	becomes very unpredictable.

	I just saved a record via a simple
	front end App.  I entered 56,000,000
	When I retrieved the record i got:
		$13,050,327.04  !!

	Any thoughts ?

			Linux 2.4.20-20.7smp
			psql (PostgreSQL) 7.2.3

		Thank you,

Terry L. Hampton
Project Manager
LimaCorp, LLC


pgsql-admin by date

Next:From: Jouneau LucDate: 2004-07-23 12:50:42
Subject: Seq scan with a like operator
Previous:From: Eduardo S. FontanettiDate: 2004-07-23 12:24:06
Subject: Backup

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group