27 strcpy(new->variable, var);
50 switch (v->
type->type)
87 strcpy(new->name,
name);
109 if (strcmp(
name,
i->name) == 0)
140 if (strcmp(
name,
i->name) == 0)
191 switch (results->
value)
204 NULL, NULL, -1, NULL, NULL, str_zero, NULL, NULL);
238 return "CARDINALITY";
244 return "DATETIME_INTERVAL_CODE";
246 return "DATETIME_INTERVAL_PRECISION";
258 return "OCTET_LENGTH";
262 return "RETURNED_LENGTH";
264 return "RETURNED_OCTET_LENGTH";
284 switch (results->
value)
314 NULL, NULL, -1, NULL, NULL, str_zero, NULL, NULL);
335 #define MAX_DESCRIPTOR_NAMELEN 128
341 static struct variable varspace[2] = {
342 {descriptor_names[0], &descriptor_type, 0, NULL},
343 {descriptor_names[1], &descriptor_type, 0, NULL}
347 return &varspace[
input];
358 p->
type->size = NULL;
359 p->
type->struct_sizeof = NULL;
360 p->
type->u.element = NULL;
361 p->
type->counter = 0;
@ ECPGt_unsigned_long_long
void whenever_action(int mode)
size_t strlcpy(char *dst, const char *src, size_t siz)
struct variable * descriptor_variable(const char *name, int input)
void push_assignment(char *var, enum ECPGdtype value)
void output_set_descr(char *desc_name, char *index)
void add_descriptor(char *name, char *connection)
static struct descriptor * descriptors
void output_get_descr_header(char *desc_name)
void output_get_descr(char *desc_name, char *index)
static struct assignment * assignments
static void ECPGnumeric_lvalue(char *name)
void drop_descriptor(char *name, char *connection)
static const char * descriptor_item_name(enum ECPGdtype itemcode)
static void drop_assignments(void)
struct variable * sqlda_variable(const char *name)
void output_set_descr_header(char *desc_name)
#define MAX_DESCRIPTOR_NAMELEN
struct descriptor * lookup_descriptor(char *name, char *connection)
void mmerror(int error_code, enum errortype type, const char *error,...) pg_attribute_printf(3
struct variable * find_variable(char *name)
char * mm_strdup(const char *string)
void void mmfatal(int error_code, const char *error,...) pg_attribute_printf(2
const char * get_dtype(enum ECPGdtype)
void * mm_alloc(size_t size)
void ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype *type, const int brace_level, const char *ind_name, struct ECPGtype *ind_type, const int ind_brace_level, const char *prefix, const char *ind_prefix, char *arr_str_size, const char *struct_sizeof, const char *ind_struct_sizeof)