Go to the source code of this file.
Data Structures | |
struct | sqlca_t |
Defines | |
#define | PGDLLIMPORT |
#define | SQLERRMC_LEN 150 |
#define | sqlca (*ECPGget_sqlca()) |
Functions | |
struct sqlca_t * | ECPGget_sqlca (void) |
#define sqlca (*ECPGget_sqlca()) |
Definition at line 59 of file sqlca.h.
Referenced by close_cur1(), dosqlprint(), ecpg_execute(), ecpg_get_data(), ECPG_informix_reset_sqlca(), ecpg_raise(), ecpg_raise_backend(), ECPGallocate_desc(), ECPGconnect(), ECPGdeallocate_desc(), ECPGdisconnect(), ECPGget_desc(), ECPGget_desc_header(), ECPGnoticeReceiver(), get_record1(), get_var1(), main(), open_cur1(), openit(), sqlprint(), and test().
struct sqlca_t* ECPGget_sqlca | ( | void | ) | [read] |
Definition at line 135 of file misc.c.
{ #ifdef ENABLE_THREAD_SAFETY struct sqlca_t *sqlca; pthread_once(&sqlca_key_once, ecpg_sqlca_key_init); sqlca = pthread_getspecific(sqlca_key); if (sqlca == NULL) { sqlca = malloc(sizeof(struct sqlca_t)); ecpg_init_sqlca(sqlca); pthread_setspecific(sqlca_key, sqlca); } return (sqlca); #else return (&sqlca); #endif }