diff options
author | Michael Meskes <meskes@postgresql.org> | 2001-09-25 18:37:17 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2001-09-25 18:37:17 +0000 |
commit | 16b9b75876ce03a1e9f5deb00142a05ce49a388c (patch) | |
tree | 7cb857c27aa85c1c760ee5bdd0359a2d6939e2d1 /src/interfaces/ecpg/lib/execute.c | |
parent | 1b20315008267c3b6c946c87cff5f9b0bcd1c44d (diff) | |
download | postgresql-16b9b75876ce03a1e9f5deb00142a05ce49a388c.tar.gz postgresql-16b9b75876ce03a1e9f5deb00142a05ce49a388c.zip |
- Synced preproc.y with gram.y.
- Changed locale handling.
Diffstat (limited to 'src/interfaces/ecpg/lib/execute.c')
-rw-r--r-- | src/interfaces/ecpg/lib/execute.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)) { |