Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1A75D635888 for ; Wed, 10 Jun 2009 13:31:46 -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-07 for ; Wed, 10 Jun 2009 13:31:45 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 2C8C9635881 for ; Wed, 10 Jun 2009 13:31:45 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1007) id 56DB375331E; Wed, 10 Jun 2009 16:31:44 +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: <20090610163144.56DB375331E@cvs.postgresql.org> Date: Wed, 10 Jun 2009 16:31:44 +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/152 X-Sequence-Number: 37356 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_2_STABLE Modified Files: -------------- pgsql/src/backend/utils/adt: cash.c (r1.68 -> r1.68.2.1) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/cash.c?r1=1.68&r2=1.68.2.1)