Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 701ADB5DC63 for ; Thu, 1 Sep 2011 10:55:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 35259-08 for ; Thu, 1 Sep 2011 13:55:47 +0000 (UTC) X-Greylist: delayed 00:07:06.160433 by SQLgrey-1.7.6 Received: from gauss.credativ.com (gauss.credativ.com [93.94.130.89]) by mail.postgresql.org (Postfix) with ESMTP id 04E6FB5DCB7 for ; Thu, 1 Sep 2011 10:55:46 -0300 (ADT) Received: from feivel (exit.credativ.com [87.139.82.80]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id B86DA1B42BA; Thu, 1 Sep 2011 15:48:37 +0200 (CEST) Received: by feivel (Postfix, from userid 1000) id 8189F10A04E; Thu, 1 Sep 2011 15:48:37 +0200 (CEST) Date: Thu, 1 Sep 2011 15:48:37 +0200 From: Michael Meskes To: Heikki Linnakangas Cc: PostgreSQL Bugs Subject: Re: ECPGdo fails to restore LC_NUMERIC Message-ID: <20110901134837.GA29929@feivel.credativ.lan> References: <4E5F6C0B.6030708@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4E5F6C0B.6030708@enterprisedb.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/7 X-Sequence-Number: 31024 On Thu, Sep 01, 2011 at 02:27:07PM +0300, Heikki Linnakangas wrote: > ECPGdo function in ecpglib sets LC_NUMERIC locale temporarily to C, > to make sure it uses the '.' as the decimal separator for any > numerics it sends to the backend. However, it fails to restore it > back to the original locale in some error cases. I can see two > returns from the function that neglect that, on lines 1776 and 1803 > in execute.c. Fixed. Thanks for spotting this. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at googlemail dot com VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL