Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 909E3635881 for ; Wed, 10 Jun 2009 13:31:40 -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 43305-10 for ; Wed, 10 Jun 2009 13:31:38 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 2B7C8635727 for ; Wed, 10 Jun 2009 13:31:39 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1007) id 3563E75331E; Wed, 10 Jun 2009 16:31:38 +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: <20090610163138.3563E75331E@cvs.postgresql.org> Date: Wed, 10 Jun 2009 16:31:38 +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/151 X-Sequence-Number: 37355 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_3_STABLE Modified Files: -------------- pgsql/src/backend/utils/adt: cash.c (r1.77.2.1 -> r1.77.2.2) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/cash.c?r1=1.77.2.1&r2=1.77.2.2)