Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 186DE635F6F for ; Wed, 10 Jun 2009 13:31:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18249-09 for ; Wed, 10 Jun 2009 13:31:57 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 0E898635E27 for ; Wed, 10 Jun 2009 13:31:57 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1007) id 35A6D75331E; Wed, 10 Jun 2009 16:31:56 +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: <20090610163156.35A6D75331E@cvs.postgresql.org> Date: Wed, 10 Jun 2009 16:31:56 +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/154 X-Sequence-Number: 37358 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. Tags: ---- REL8_0_STABLE Modified Files: -------------- pgsql/src/backend/utils/adt: cash.c (r1.64 -> r1.64.4.1) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/cash.c?r1=1.64&r2=1.64.4.1)