pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: ECPGdo fails to restore LC_NUMERIC
Date: Thu, 1 Sep 2011 15:48:37 +0200
Message-ID: <20110901134837.GA29929@feivel.credativ.lan> (raw)
In-Reply-To: <4E5F6C0B.6030708@enterprisedb.com>
References: <4E5F6C0B.6030708@enterprisedb.com>

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



view thread (2+ messages)

Message-ID: <20110901134837.GA29929@feivel.credativ.lan>
Permalink:  ../20110901134837.GA29929@feivel.credativ.lan/
Also on:    postgresql.org/message-id/20110901134837.GA29929@feivel.credativ.lan

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: meskes@postgresql.org, heikki.linnakangas@enterprisedb.com
  Subject: Re: ECPGdo fails to restore LC_NUMERIC
  In-Reply-To: <20110901134837.GA29929@feivel.credativ.lan>
  References: <4E5F6C0B.6030708@enterprisedb.com> <20110901134837.GA29929@feivel.credativ.lan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox