7 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
9 #line 1 "descriptor.pgc"
10 #ifdef ENABLE_THREAD_SAFETY
12 #define WIN32_LEAN_AND_MEAN
27 #ifndef POSTGRES_SQLCA_H
28 #define POSTGRES_SQLCA_H
31 #if defined(WIN32) || defined(__CYGWIN__)
32 #define PGDLLIMPORT __declspec (dllimport)
38 #define SQLERRMC_LEN 150
84 #ifndef POSTGRES_ECPG_INTERNAL
85 #define sqlca (*ECPGget_sqlca())
94 #line 16 "descriptor.pgc"
97 #line 17 "descriptor.pgc"
100 #line 18 "descriptor.pgc"
103 #if defined(ENABLE_THREAD_SAFETY) && defined(WIN32)
104 static unsigned __stdcall
fn(
void*
arg)
114 #line 30 "descriptor.pgc"
117 #line 30 "descriptor.pgc"
120 #line 31 "descriptor.pgc"
123 #line 31 "descriptor.pgc"
132 #ifdef ENABLE_THREAD_SAFETY
144 threads[
i] = (HANDLE)_beginthreadex(NULL, 0,
fn, NULL, 0, &
id);
147 WaitForMultipleObjects(
THREADS, threads, TRUE, INFINITE);
149 CloseHandle(threads[
i]);
152 pthread_create(&threads[
i], NULL,
fn, NULL);
154 pthread_join(threads[
i], NULL);
bool ECPGdeallocate_desc(int line, const char *name)
bool ECPGallocate_desc(int line, const char *name)
struct sqlca_t::@150 sqlerrm
char sqlerrmc[SQLERRMC_LEN]
static void * fn(void *arg)
struct sqlca_t * ECPGget_sqlca(void)