7 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
12 #include "ecpg_config.h"
15 #define WIN32_LEAN_AND_MEAN
29 #ifndef POSTGRES_SQLCA_H
30 #define POSTGRES_SQLCA_H
33 #if defined(WIN32) || defined(__CYGWIN__)
34 #define PGDLLIMPORT __declspec (dllimport)
40 #define SQLERRMC_LEN 150
86 #ifndef POSTGRES_ECPG_INTERNAL
87 #define sqlca (*ECPGget_sqlca())
99 #line 1 "regression.h"
117 static unsigned __stdcall
fn(
void*
arg)
136 char query [ 256 ] =
"INSERT INTO T VALUES ( ? )" ;
201 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
236 threads[
i] = (HANDLE)_beginthreadex(NULL, 0,
fn, (
void*)
i, 0, &id);
239 WaitForMultipleObjects(
THREADS, threads, TRUE, INFINITE);
241 CloseHandle(threads[
i]);
244 pthread_create(&threads[
i], NULL,
fn, (
void *)
i);
246 pthread_join(threads[
i], NULL);
bool ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
bool ECPGdisconnect(int lineno, const char *connection_name)
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
bool ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)
bool ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, const char *name, const char *variable)
bool ECPGdeallocate(int lineno, int c, const char *connection_name, const char *name)
char sqlerrmc[SQLERRMC_LEN]
struct sqlca_t::@160 sqlerrm
static void * fn(void *arg)
struct sqlca_t * ECPGget_sqlca(void)