Skip site navigation (1) Skip section navigation (2)

Re: ECPGdo fails to restore LC_NUMERIC

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: ECPGdo fails to restore LC_NUMERIC
Date: 2011-09-01 13:48:37
Message-ID: 20110901134837.GA29929@feivel.credativ.lan (view raw or flat)
Thread:
Lists: pgsql-bugs
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

In response to

pgsql-bugs by date

Next:From: Vik ReykjaDate: 2011-09-01 15:31:58
Subject: Re: BUG #6192: Incorrect result from operator "overlaps"
Previous:From: Kevin GrittnerDate: 2011-09-01 13:42:05
Subject: Re: The translation into Bulgarian

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group