From 16b9b75876ce03a1e9f5deb00142a05ce49a388c Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Tue, 25 Sep 2001 18:37:17 +0000 Subject: - Synced preproc.y with gram.y. - Changed locale handling. --- src/interfaces/ecpg/lib/execute.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/interfaces/ecpg/lib/execute.c') diff --git a/src/interfaces/ecpg/lib/execute.c b/src/interfaces/ecpg/lib/execute.c index 30d6645c51f..40bcfc0c549 100644 --- a/src/interfaces/ecpg/lib/execute.c +++ b/src/interfaces/ecpg/lib/execute.c @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.23 2001/09/19 14:09:32 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.24 2001/09/25 18:37:17 meskes Exp $ */ /* * The aim is to get a simpler inteface to the database routines. @@ -1007,11 +1007,11 @@ ECPGdo(int lineno, const char *connection_name, char *query,...) struct statement *stmt; struct connection *con = get_connection(connection_name); bool status = true; - char *locale = setlocale(LC_NUMERIC, NULL); + char *locale; /* Make sure we do NOT honor the locale for numeric input/output */ - /* since the database wants teh standard decimal point */ - setlocale(LC_NUMERIC, "C"); + /* since the database wants the standard decimal point */ + locale = setlocale(LC_NUMERIC, "C"); if (!ecpg_init(con, connection_name, lineno)) { -- cgit v1.2.3