PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | MAX_DESCRIPTOR_NAMELEN 128 |
Functions | |
void | push_assignment (char *var, enum ECPGdtype value) |
static void | drop_assignments (void) |
static void | ECPGnumeric_lvalue (char *name) |
void | add_descriptor (char *name, char *connection) |
void | drop_descriptor (char *name, char *connection) |
struct descriptor * | lookup_descriptor (char *name, char *connection) |
void | output_get_descr_header (char *desc_name) |
void | output_get_descr (char *desc_name, char *index) |
void | output_set_descr_header (char *desc_name) |
static const char * | descriptor_item_name (enum ECPGdtype itemcode) |
void | output_set_descr (char *desc_name, char *index) |
struct variable * | descriptor_variable (const char *name, int input) |
struct variable * | sqlda_variable (const char *name) |
Variables | |
static struct assignment * | assignments |
static struct descriptor * | descriptors |
#define MAX_DESCRIPTOR_NAMELEN 128 |
Definition at line 335 of file descriptor.c.
void add_descriptor | ( | char * | name, |
char * | connection | ||
) |
Definition at line 76 of file descriptor.c.
References connection, descriptors, mm_alloc(), name, and descriptor::name.
|
static |
Definition at line 233 of file descriptor.c.
References ECPGd_cardinality, ECPGd_count, ECPGd_data, ECPGd_di_code, ECPGd_di_precision, ECPGd_indicator, ECPGd_key_member, ECPGd_length, ECPGd_name, ECPGd_nullable, ECPGd_octet, ECPGd_precision, ECPGd_ret_length, ECPGd_ret_octet, ECPGd_scale, and ECPGd_type.
Referenced by output_set_descr().
struct variable* descriptor_variable | ( | const char * | name, |
int | input | ||
) |
Definition at line 337 of file descriptor.c.
References ECPGt_descriptor, input, MAX_DESCRIPTOR_NAMELEN, name, and strlcpy().
|
static |
Definition at line 33 of file descriptor.c.
References assignments, free, assignment::next, and assignment::variable.
Referenced by output_get_descr(), output_get_descr_header(), output_set_descr(), and output_set_descr_header().
void drop_descriptor | ( | char * | name, |
char * | connection | ||
) |
Definition at line 99 of file descriptor.c.
References descriptors, ET_WARNING, free, i, mmerror(), name, and PARSE_ERROR.
|
static |
Definition at line 46 of file descriptor.c.
References base_yyout, ECPGt_const, ECPGt_int, ECPGt_long, ECPGt_long_long, ECPGt_short, ECPGt_unsigned_int, ECPGt_unsigned_long, ECPGt_unsigned_long_long, ECPGt_unsigned_short, ET_ERROR, find_variable(), mmerror(), name, PARSE_ERROR, and variable::type.
Referenced by output_get_descr_header(), and output_set_descr_header().
struct descriptor* lookup_descriptor | ( | char * | name, |
char * | connection | ||
) |
Definition at line 131 of file descriptor.c.
References descriptors, ET_WARNING, i, mm_strdup(), mmerror(), name, and PARSE_ERROR.
void output_get_descr | ( | char * | desc_name, |
char * | index | ||
) |
Definition at line 181 of file descriptor.c.
References assignments, base_yyout, variable::brace_level, drop_assignments(), ECPGd_key_member, ECPGd_nullable, ECPGdump_a_type(), ET_WARNING, find_variable(), fprintf, free, get_dtype(), mm_strdup(), mmerror(), variable::name, assignment::next, PARSE_ERROR, variable::type, assignment::value, assignment::variable, and whenever_action().
void output_get_descr_header | ( | char * | desc_name | ) |
Definition at line 162 of file descriptor.c.
References assignments, base_yyout, drop_assignments(), ECPGd_count, ECPGnumeric_lvalue(), ET_WARNING, fprintf, mmerror(), assignment::next, PARSE_ERROR, assignment::value, assignment::variable, and whenever_action().
void output_set_descr | ( | char * | desc_name, |
char * | index | ||
) |
Definition at line 275 of file descriptor.c.
References assignments, base_yyout, variable::brace_level, descriptor_item_name(), drop_assignments(), ECPGd_cardinality, ECPGd_data, ECPGd_di_code, ECPGd_di_precision, ECPGd_indicator, ECPGd_key_member, ECPGd_length, ECPGd_name, ECPGd_nullable, ECPGd_octet, ECPGd_precision, ECPGd_ret_length, ECPGd_ret_octet, ECPGd_scale, ECPGd_type, ECPGdump_a_type(), find_variable(), fprintf, free, get_dtype(), mm_strdup(), mmfatal(), variable::name, assignment::next, PARSE_ERROR, variable::type, assignment::value, assignment::variable, and whenever_action().
void output_set_descr_header | ( | char * | desc_name | ) |
Definition at line 214 of file descriptor.c.
References assignments, base_yyout, drop_assignments(), ECPGd_count, ECPGnumeric_lvalue(), ET_WARNING, fprintf, mmerror(), assignment::next, PARSE_ERROR, assignment::value, assignment::variable, and whenever_action().
void push_assignment | ( | char * | var, |
enum ECPGdtype | value | ||
) |
Definition at line 21 of file descriptor.c.
References assignments, mm_alloc(), value, and assignment::variable.
struct variable* sqlda_variable | ( | const char * | name | ) |
Definition at line 351 of file descriptor.c.
References variable::brace_level, ECPGt_sqlda, mm_alloc(), mm_strdup(), name, variable::name, variable::next, and variable::type.
|
static |
Definition at line 18 of file descriptor.c.
Referenced by drop_assignments(), output_get_descr(), output_get_descr_header(), output_set_descr(), output_set_descr_header(), and push_assignment().
|
static |
Definition at line 73 of file descriptor.c.
Referenced by add_descriptor(), drop_descriptor(), and lookup_descriptor().