mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
ynced parser and keyword list.
Implemented EXEC SQL UNDEF. Applied first version of the regression test patch by Joachim Wieland <joe@mcknight.de>.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.55 2006/07/28 11:49:36 meskes Exp $ */
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.56 2006/08/02 13:43:23 meskes Exp $ */
|
||||
|
||||
/*
|
||||
* The aim is to get a simpler inteface to the database routines.
|
||||
@ -1465,7 +1465,7 @@ ECPGdo(int lineno, int compat, int force_indicator, const char *connection_name,
|
||||
{
|
||||
va_list args;
|
||||
struct statement *stmt;
|
||||
struct connection *con = ECPGget_connection(connection_name);
|
||||
struct connection *con;
|
||||
bool status;
|
||||
char *oldlocale;
|
||||
|
||||
@ -1474,6 +1474,12 @@ ECPGdo(int lineno, int compat, int force_indicator, const char *connection_name,
|
||||
oldlocale = ECPGstrdup(setlocale(LC_NUMERIC, NULL), lineno);
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
#ifdef ENABLE_THREAD_SAFETY
|
||||
ecpg_pthreads_init();
|
||||
#endif
|
||||
|
||||
con = ECPGget_connection(connection_name);
|
||||
|
||||
if (!ECPGinit(con, connection_name, lineno))
|
||||
{
|
||||
setlocale(LC_NUMERIC, oldlocale);
|
||||
|
Reference in New Issue
Block a user