PostgreSQL Source Code git master
|
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <stdint.h>
#include <stdlib.h>
#include "ecpg_config.h"
#include <pthread.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | sqlca_t |
Macros | |
#define | ECPGdebug(X, Y) ECPGdebug((X)+100,(Y)) |
#define | THREADS 16 |
#define | REPEATS 50 |
#define | POSTGRES_SQLCA_H |
#define | PGDLLIMPORT |
#define | SQLERRMC_LEN 150 |
#define | sqlca (*ECPGget_sqlca()) |
Functions | |
struct sqlca_t * | ECPGget_sqlca (void) |
static void * | fn (void *arg) |
int | main () |
#define ECPGdebug | ( | X, | |
Y | |||
) | ECPGdebug((X)+100,(Y)) |
Definition at line 7 of file thread-prep.c.
#define PGDLLIMPORT |
Definition at line 36 of file thread-prep.c.
#define POSTGRES_SQLCA_H |
Definition at line 30 of file thread-prep.c.
#define REPEATS 50 |
Definition at line 25 of file thread-prep.c.
#define sqlca (*ECPGget_sqlca()) |
Definition at line 87 of file thread-prep.c.
#define SQLERRMC_LEN 150 |
Definition at line 40 of file thread-prep.c.
#define THREADS 16 |
Definition at line 24 of file thread-prep.c.
struct sqlca_t * ECPGget_sqlca | ( | void | ) |
Definition at line 108 of file misc.c.
References ecpg_init_sqlca(), ecpg_sqlca_key_init(), malloc, pthread_getspecific(), pthread_setspecific(), sqlca, sqlca_key, and sqlca_key_once.
Referenced by ecpg_get_data(), ECPG_informix_reset_sqlca(), ecpg_init(), ecpg_log(), ecpg_process_output(), ecpg_raise(), ecpg_raise_backend(), ECPGallocate_desc(), ECPGconnect(), ECPGdeallocate_desc(), ECPGdisconnect(), ECPGget_desc(), ECPGget_desc_header(), ECPGnoticeReceiver(), ECPGset_var(), and sqlprint().
|
static |
Definition at line 119 of file thread-prep.c.
References arg, ECPG_NOT_FOUND, ECPGconnect(), ECPGdeallocate(), ECPGdisconnect(), ECPGdo(), ECPGprepare(), ECPGsetcommit(), ECPGst_execute, ECPGt_EOIT, ECPGt_EORT, ECPGt_int, ECPGt_NO_INDICATOR, i, name, REPEATS, sprintf, sqlca, sqlprint(), and value.
Referenced by main().
int main | ( | void | ) |
Definition at line 192 of file thread-prep.c.
References ECPGconnect(), ECPGdisconnect(), ECPGdo(), ECPGsetcommit(), ECPGst_normal, ECPGt_EOIT, ECPGt_EORT, fn(), i, sqlca, sqlprint(), and THREADS.