In ecpglib restore LC_NUMERIC in case of an error.

This commit is contained in:
Michael Meskes 2011-09-01 15:27:38 +02:00
parent c42438364c
commit 12613cb6b8

View File

@ -1492,7 +1492,11 @@ 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, questionmarks, &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