projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2d8759
)
In ecpglib restore LC_NUMERIC in case of an error.
author
Michael Meskes
<
[email protected]
>
Thu, 1 Sep 2011 13:27:38 +0000
(15:27 +0200)
committer
Michael Meskes
<
[email protected]
>
Thu, 1 Sep 2011 13:35:09 +0000
(15:35 +0200)
src/interfaces/ecpg/ecpglib/execute.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/execute.c
b/src/interfaces/ecpg/ecpglib/execute.c
index 6836df65f6cdb24ebc68679c31dd4df5aaee10b0..05cbb3ecb12b8cde6cf114be2fda0e4b9be8a857 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/execute.c
+++ b/
src/interfaces/ecpg/ecpglib/execute.c
@@
-1503,8
+1503,12
@@
ECPGdo(const int lineno, const int compat, const int force_indicator, const char
*/
if (statement_type == ECPGst_prepnormal)
{
- if (!ecpg_auto_prepare(lineno, connection_name, compat, &prepname, query))
+ if (!ecpg_auto_prepare(lineno, connection_name, compat, &prepname, query)) {
+ setlocale(LC_NUMERIC, oldlocale);
+ ecpg_free(oldlocale);
+ va_end(args);
return (false);
+ }
/*
* statement is now prepared, so instead of the query we have to