Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0F700635881 for ; Wed, 10 Jun 2009 13:32:05 -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-10 for ; Wed, 10 Jun 2009 13:32:02 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id CF8AA635152 for ; Wed, 10 Jun 2009 13:32:03 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1007) id 05045753336; Wed, 10 Jun 2009 16:32:03 +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: <20090610163203.05045753336@cvs.postgresql.org> Date: Wed, 10 Jun 2009 16:32:03 +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/155 X-Sequence-Number: 37359 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: ---- REL7_4_STABLE Modified Files: -------------- pgsql/src/backend/utils/adt: cash.c (r1.61 -> r1.61.2.1) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/cash.c?r1=1.61&r2=1.61.2.1)