Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 00AC2634B88 for ; Wed, 10 Jun 2009 13:31:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 43314-07 for ; Wed, 10 Jun 2009 13:31:32 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 544336347F3 for ; Wed, 10 Jun 2009 13:31:33 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1007) id 5F2E175331E; Wed, 10 Jun 2009 16:31:32 +0000 (UTC) MIME-Version: 1.0 To: pgsql-committers@postgresql.org Subject: pgsql: Fix cash_in() to behave properly in locales where frac_digits is X-Mailer: activitymail 1.24, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain Message-Id: <20090610163132.5F2E175331E@cvs.postgresql.org> Date: Wed, 10 Jun 2009 16:31:32 +0000 (UTC) From: tgl@postgresql.org (Tom Lane) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/150 X-Sequence-Number: 37354 Log Message: ----------- 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. Modified Files: -------------- pgsql/src/backend/utils/adt: cash.c (r1.80 -> r1.81) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/cash.c?r1=1.80&r2=1.81)