CUBRID Engine
latest
|
#include "config.h"
#include <stdio.h>
#include "db.h"
#include "esql_gadget.h"
#include "parser.h"
#include "dbtype.h"
Go to the source code of this file.
Macros | |
#define | NOT_FOUND -1 |
Functions | |
static int | gadget_attr_index (DB_GADGET *gadget, const char *attr_name) |
DB_GADGET * | db_gadget_create (const char *class_name, const char *attribute_names[]) |
void | db_gadget_destroy (DB_GADGET *gadget) |
int | db_gadget_bind (DB_GADGET *gadget, const char *attribute_name, DB_VALUE *dbval) |
DB_OBJECT * | db_gadget_exec (DB_GADGET *gadget, int num_dbvals, DB_VALUE dbvals[]) |
#define NOT_FOUND -1 |
Definition at line 33 of file esql_gadget.c.
Referenced by db_gadget_bind(), db_gadget_create(), and gadget_attr_index().
Definition at line 205 of file esql_gadget.c.
References ARG_FILE_LINE, attr_val::attr_desc, db_gadget::attrs, db_gadget::class_, db_attdesc_domain(), db_get_class_name(), db_value_clear(), ER_ERROR_SEVERITY, ER_GADGET_INVALID, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), ER_SM_UNKNOWN_ATTRIBUTE, free_and_init, gadget_attr_index(), i, NO_ERROR, NOT_FOUND, NULL, tp_value_coerce(), and attr_val::value.
Referenced by uci_static().
Definition at line 51 of file esql_gadget.c.
References ARG_FILE_LINE, attr_val::attr_desc, db_gadget::attrs, db_gadget::class_, db_attribute_name(), db_attribute_next(), db_find_class(), db_gadget_destroy(), db_get_attribute_descriptor(), db_get_attributes(), db_is_vclass(), ER_ERROR_SEVERITY, ER_GADGET_NO_VCLASSES, ER_LC_UNKNOWN_CLASSNAME, ER_OBJ_DUPLICATE_ASSIGNMENT, er_set(), error(), gadget_attr_index(), i, NOT_FOUND, NULL, db_gadget::num_attrs, and attr_val::value.
Referenced by uci_static().
void db_gadget_destroy | ( | DB_GADGET * | gadget | ) |
Definition at line 163 of file esql_gadget.c.
References attr_val::attr_desc, db_gadget::attrs, db_free_attribute_descriptor(), db_value_clear(), free_and_init, i, NULL, db_gadget::num_attrs, and attr_val::value.
Referenced by db_gadget_create(), free_repetitive(), and uci_static().
Definition at line 255 of file esql_gadget.c.
References ARG_FILE_LINE, attr_val::attr_desc, db_gadget::attrs, db_gadget::class_, dbt_abort_object(), dbt_create_object_internal(), dbt_dput_internal(), dbt_finish_object(), ER_ERROR_SEVERITY, ER_GADGET_ATTRS_VALS_NE, ER_GADGET_INVALID, er_set(), error(), i, NO_ERROR, NULL, db_gadget::num_attrs, and attr_val::value.
Referenced by uci_static().
Definition at line 330 of file esql_gadget.c.
References attr_val::attr_desc, db_gadget::attrs, CASE_INSENSITIVE, i, sm_descriptor::name, NOT_FOUND, db_gadget::num_attrs, and pt_str_compare().
Referenced by db_gadget_bind(), and db_gadget_create().