diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index f34ea1f3f4fc7d8a8303e6b8b25cfb2ccc4a769f..ecf2487d2fdf9028047c664ffee73f9e08ec86dd 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -1772,7 +1772,8 @@ 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);