Fix cash_in() to behave properly in locales where frac_digits is zero,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2ef8c1acfd5a1f81020c3eb2916f9dcfaeeec48c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-06-10T16:31:32Z
Releases: 8.4.0
Fix cash_in() to behave properly in locales where frac_digits is zero,
eg Japan.  Report and fix by Itagaki Takahiro.  Also fix CASHDEBUG printout
format for branches with 64-bit money type, and some minor comment cleanup.

Back-patch to 7.4, because it's broken all the way back.

Files

PathChange+/−
src/backend/utils/adt/cash.c modified +6 −8