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())
117static unsigned __stdcall
fn(
void*
arg)
159 ECPGt_char,&(r),(
long)0,(
long)0,(1)*
sizeof(
char),
195 threads[
i] = (HANDLE)_beginthreadex(NULL, 0,
fn, (
void*)
i, 0, &id);
198 WaitForMultipleObjects(
THREADS, threads, TRUE, INFINITE);
200 CloseHandle(threads[
i]);
203 pthread_create(&threads[
i], NULL,
fn, (
void *)
i);
205 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,...)
struct sqlca_t::@165 sqlerrm
char sqlerrmc[SQLERRMC_LEN]
static void * fn(void *arg)
struct sqlca_t * ECPGget_sqlca(void)