101 retval = clslist->
op;
546 if (NULL_LOCK < obj->lock && obj->
lock <
X_LOCK)
670 subs = class_->
users;
694 for (; sub_list; sub_list = sub_list->
next)
697 if (has_instance < 0)
701 else if (has_instance > 0)
724 const char *name =
NULL;
729 name =
"unknown primitive type identifier";
826 if (class_name ==
NULL || attribute_name ==
NULL)
1004 if (attribute !=
NULL)
1006 type = attribute->
type->
id;
1024 if (attribute !=
NULL)
1051 if (attribute !=
NULL)
1067 const char *name =
NULL;
1069 if (attribute !=
NULL)
1085 const char *comment =
NULL;
1087 if (attribute !=
NULL)
1106 if (attribute && attribute->
domain)
1128 if (attribute !=
NULL)
1148 if (attribute !=
NULL)
1150 order = attribute->
order;
1169 if (attribute !=
NULL)
1171 domain = attribute->
domain;
1193 if (attribute !=
NULL)
1213 if (attribute !=
NULL)
1232 if (attribute !=
NULL)
1259 if (attribute !=
NULL)
1286 if (attribute !=
NULL)
1313 if (attribute !=
NULL)
1332 if (attribute !=
NULL)
1359 if (attribute !=
NULL)
1379 if (attribute !=
NULL)
1406 if (attribute !=
NULL)
1433 if (attribute !=
NULL)
1525 if (methods ==
NULL)
1554 if (methods ==
NULL)
1589 const char *name =
NULL;
1608 const char *
function =
NULL;
1676 if (method !=
NULL && method->
signatures !=
NULL && arg <= method->signatures->num_args)
1691 if (marg->
index == arg)
1805 if (resolution !=
NULL)
1808 next = resolution->
next;
1828 if (resolution !=
NULL)
1845 const char *name =
NULL;
1847 if (resolution !=
NULL)
1849 name = resolution->
name;
1864 const char *alias =
NULL;
1866 if (resolution !=
NULL)
1868 alias = resolution->
alias;
1921 if (constraints ==
NULL)
1942 if (constraint !=
NULL)
1944 next = constraint->
next;
1958 while (constraint !=
NULL)
1982 if (constraint !=
NULL)
2033 const char *name =
NULL;
2035 if (constraint !=
NULL)
2037 name = constraint->
name;
2056 if (constraint !=
NULL)
2072 const int *asc_desc =
NULL;
2074 if (constraint !=
NULL)
2091 const int *attrs_prefix_length =
NULL;
2093 if (constraint !=
NULL)
2098 return attrs_prefix_length;
2109 if (constraint !=
NULL)
2145 const char *act =
NULL;
2205 if (methfile !=
NULL)
2207 next = methfile->
next;
2221 const char *name =
NULL;
2223 if (methfile !=
NULL)
2225 name = methfile->
name;
2242 const char *commands;
2251 if (commands ==
NULL)
2316 if (classmop ==
NULL)
2392 *num_leaf_pages = stat.
leafs;
2393 *num_total_pages = stat.
pages;
2394 *num_keys = stat.
keys;
2410 const char *table_name;
2427 if (class_op ==
NULL)
2449 return error_status;
2462 return error_status;
DB_OBJECT * db_find_class(const char *name)
#define CHECK_1ARG_MINUSONE(obj)
int sm_is_subclass(MOP classmop, MOP supermop)
DB_OBJECT * db_attribute_class(DB_ATTRIBUTE *attribute)
void describe_class(struct db_object *class_op)
#define WS_IS_DELETED(mop)
int heap_get_class_num_objects_pages(HFID *hfid, int approximation, int *nobjs, int *npages)
int sm_is_system_class(MOP op)
int db_attribute_is_indexed(DB_ATTRIBUTE *attribute)
SM_FOREIGN_KEY_INFO * fk_info
const char * db_get_class_name(DB_OBJECT *class_)
MOP ws_mop(const OID *oid, MOP class_mop)
const char * db_get_type_name(DB_TYPE type_id)
DB_ATTRIBUTE * db_get_attributes(DB_OBJECT *obj)
#define QSTR_IS_ANY_CHAR(s)
DB_TYPE db_type_from_string(const char *name)
DB_ATTRIBUTE * db_get_ordered_attributes(DB_OBJECT *obj)
DB_ATTRIBUTE * db_get_class_attribute(DB_OBJECT *obj, const char *name)
int db_is_instance_of(MOP obj, MOP class_)
DB_CONSTRAINT * db_constraint_next(DB_CONSTRAINT *constraint)
int db_method_arg_count(DB_METHOD *method)
static const char * attribute_name(PARSER_CONTEXT *parser, PT_NODE *att)
DB_CONSTRAINT * db_constraint_find_primary_key(DB_CONSTRAINT *constraint)
int db_is_instance(MOP obj)
#define CHECK_2ARGS_NULL(obj1, obj2)
int db_attribute_order(DB_ATTRIBUTE *attribute)
#define assert_release(e)
SM_RESOLUTION * resolutions
#define ER_QSTR_INVALID_DATA_TYPE
int db_is_any_class(MOP obj)
#define ER_OBJ_NO_COMPONENTS
DB_CONSTRAINT * db_get_constraints(DB_OBJECT *obj)
DB_OBJLIST * db_fetch_all_objects(DB_OBJECT *op, DB_FETCH_MODE purpose)
DB_ATTRIBUTE ** db_constraint_attributes(DB_CONSTRAINT *constraint)
SM_CLASS_TYPE sm_get_class_type(SM_CLASS *class_)
int sm_is_partition(MOP classmop, MOP supermop)
DB_OBJECT * db_get_foreign_key_ref_class(DB_CONSTRAINT *constraint)
SM_DEFAULT_VALUE default_value
struct sm_component * next
DB_OBJLIST * db_get_superclasses(DB_OBJECT *obj)
SM_ATTRIBUTE * classobj_find_attribute(SM_CLASS *class_, const char *name, int class_attribute)
SM_METHOD_ARGUMENT * value
int db_get_btree_statistics(DB_CONSTRAINT *cons, int *num_leaf_pages, int *num_total_pages, int *num_keys, int *height)
struct sm_class_constraint * next
int db_is_subclass(MOP classmop, MOP supermop)
DB_OBJECT * db_method_class(DB_METHOD *method)
HFID * sm_get_ch_heap(MOP classmop)
int db_class_has_instance(DB_OBJECT *classobj)
const char * db_attribute_name(DB_ATTRIBUTE *attribute)
int db_attribute_is_shared(DB_ATTRIBUTE *attribute)
int db_attribute_is_non_null(DB_ATTRIBUTE *attribute)
DB_RESOLUTION * db_get_class_resolutions(DB_OBJECT *obj)
const int * db_constraint_prefix_length(DB_CONSTRAINT *constraint)
DB_ATTRIBUTE * db_get_attribute_by_name(const char *class_name, const char *attribute_name)
SM_FOREIGN_KEY_ACTION update_action
int db_attribute_is_reverse_unique(DB_ATTRIBUTE *attribute)
int btree_get_statistics(BTID *btid, BTREE_STATS *stat_info)
#define CHECK_2ARGS_ZERO(obj1, obj2)
const char * db_attribute_comment(DB_ATTRIBUTE *attribute)
int db_is_superclass(MOP supermop, MOP classmop)
#define DB_CONNECTION_STATUS_CONNECTED
#define CHECK_1ARG_ZERO(obj)
DB_ATTRIBUTE * db_get_attribute(DB_OBJECT *obj, const char *name)
void er_set(int severity, const char *file_name, const int line_no, int err_id, int num_args,...)
DB_METHFILE * db_get_method_files(DB_OBJECT *obj)
int db_is_partition(DB_OBJECT *classobj, DB_OBJECT *superobj)
DB_ATTRIBUTE * db_get_shared_attribute(DB_OBJECT *obj, const char *name)
int * attrs_prefix_length
int au_fetch_class(MOP op, SM_CLASS **class_ptr, AU_FETCHMODE fetchmode, DB_AUTH type)
int obj_lock(MOP op, int for_write)
int db_attribute_is_primary_key(DB_ATTRIBUTE *attribute)
DB_OBJLIST * db_objlist_next(DB_OBJLIST *link)
DB_DOMAIN * db_method_arg_domain(DB_METHOD *method, int arg)
#define CHECK_1ARG_ERROR(obj)
int db_get_class_num_objs_and_pages(DB_OBJECT *classmop, int approximation, int *nobjs, int *npages)
SM_ATTRIBUTE * class_attributes
DB_OBJECT * db_objlist_object(DB_OBJLIST *link)
#define DB_VALUE_DOMAIN_TYPE(value)
DB_DOMAIN * db_method_return_domain(DB_METHOD *method)
SM_METHOD_FILE * method_files
#define CHECK_1ARG_NULL(obj)
int sm_filter_domain(TP_DOMAIN *domain, int *changes)
DB_ATTRIBUTE * db_attribute_next(DB_ATTRIBUTE *attribute)
int db_resolution_isclass(DB_RESOLUTION *resolution)
const char * sm_get_ch_name(MOP op)
const char * function_name
DB_OBJLIST * sm_fetch_all_base_classes(int external_list, DB_FETCH_MODE purpose)
#define SM_MAP_DB_INDEX_CONSTRAINT_TO_SM_CONSTRAINT(c)
const char * db_method_function(DB_METHOD *method)
SM_METHOD_SIGNATURE * signatures
DB_OBJECT * db_get_class(MOP obj)
const char * pr_type_name(DB_TYPE id)
int db_attribute_is_foreign_key(DB_ATTRIBUTE *attribute)
DB_OBJLIST * db_get_all_classes(void)
#define SM_IS_CONSTRAINT_INDEX_FAMILY(c)
void PRIM_SET_NULL(DB_VALUE *value)
#define ER_OBJ_INVALID_ATTRIBUTE
int db_attribute_is_auto_increment(DB_ATTRIBUTE *attribute)
const char * get_buffer() const
int db_get_class_privilege(DB_OBJECT *mop, unsigned int *auth)
int db_attribute_length(DB_ATTRIBUTE *attribute)
int db_is_system_class(MOP op)
int db_is_deleted(DB_OBJECT *obj)
DB_DOMAIN * pt_string_to_db_domain(const char *s, const char *class_name)
int count(int &result, const cub_regex_object ®, const std::string &src, const int position, const INTL_CODESET codeset)
DB_DOMAIN * db_attribute_domain(DB_ATTRIBUTE *attribute)
SM_CONSTRAINT * constraints
SM_METHOD * class_methods
DB_OBJECT * db_find_class_of_index(const char *const index_name, const DB_CONSTRAINT_TYPE index_type)
DB_METHOD * db_method_next(DB_METHOD *method)
DB_METHOD * db_get_method(DB_OBJECT *obj, const char *name)
SM_CLASS_CONSTRAINT * constraints
static void error(const char *msg)
SM_CLASS_CONSTRAINT * classobj_find_class_constraint(SM_CLASS_CONSTRAINT *constraints, SM_CONSTRAINT_TYPE type, const char *name)
DB_OBJLIST * sm_fetch_all_objects(DB_OBJECT *op, DB_FETCH_MODE purpose)
const char * db_resolution_name(DB_RESOLUTION *resolution)
#define HFID_IS_NULL(hfid)
PR_TYPE * pr_find_type(const char *name)
#define CHECK_CONNECT_NULL()
int au_get_class_privilege(DB_OBJECT *mop, unsigned int *auth)
SM_FOREIGN_KEY_ACTION delete_action
BTID * db_constraint_index(DB_CONSTRAINT *constraint, BTID *index)
int db_attribute_id(DB_ATTRIBUTE *attribute)
#define BTID_COPY(btid_ptr1, btid_ptr2)
DB_METHOD * db_get_class_method(DB_OBJECT *obj, const char *name)
DB_CONSTRAINT_TYPE db_constraint_type(const DB_CONSTRAINT *constraint)
#define ER_OBJ_INVALID_ARGUMENTS
const int * db_constraint_asc_desc(DB_CONSTRAINT *constraint)
int db_make_string_copy(DB_VALUE *value, DB_CONST_C_CHAR str)
#define ER_HEAP_UNKNOWN_OBJECT
DB_RESOLUTION * db_get_resolutions(DB_OBJECT *obj)
bool prm_get_bool_value(PARAM_ID prm_id)
MOP sm_find_class_with_purpose(const char *name, bool for_update)
DB_METHFILE * db_methfile_next(DB_METHFILE *methfile)
SM_ATTRIBUTE ** attributes
DB_METHOD * db_get_class_methods(DB_OBJECT *obj)
SM_METHOD_ARGUMENT * args
DB_VALUE * db_attribute_default(DB_ATTRIBUTE *attribute)
DB_OBJLIST * db_get_base_classes(void)
DB_RESOLUTION * db_resolution_next(DB_RESOLUTION *resolution)
#define SM_IS_CONSTRAINT_REVERSE_INDEX_FAMILY(c)
#define CHECK_CONNECT_ZERO()
DB_TYPE db_attribute_type(DB_ATTRIBUTE *attribute)
int obj_is_instance_of(MOP obj, MOP class_mop)
int obj_isinstance(MOP obj)
const char * db_resolution_alias(DB_RESOLUTION *resolution)
DB_ATTRIBUTE * db_get_class_attributes(DB_OBJECT *obj)
int heap_has_instance(HFID *hfid, OID *class_oid, int has_visible_instance)
#define DB_IS_NULL(value)
MOP sm_get_class(MOP obj)
#define DB_IS_CONSTRAINT_INDEX_FAMILY(c)
int db_get_schema_def_dbval(DB_VALUE *result, DB_VALUE *name_val)
DB_OBJLIST * db_get_all_objects(DB_OBJECT *op)
DB_OBJLIST * db_fetch_base_classes(DB_FETCH_MODE purpose)
DB_OBJLIST * sm_fetch_all_classes(int external_list, DB_FETCH_MODE purpose)
struct sm_attribute * order_link
#define BTID_IS_NULL(btid)
MOP sm_find_class(const char *name)
const char * db_constraint_name(DB_CONSTRAINT *constraint)
int locator_is_class(MOP mop, DB_FETCH_MODE hint_purpose)
const char * db_methfile_name(DB_METHFILE *methfile)
struct sm_resolution * next
const char * db_get_foreign_key_action(DB_CONSTRAINT *constraint, DB_FK_ACTION_TYPE type)
struct sm_constraint * next
SM_ATTRIBUTE * ordered_attributes
DB_OBJLIST * db_fetch_all_classes(DB_FETCH_MODE purpose)
DB_ATTRIBUTE * db_attribute_ordered_next(DB_ATTRIBUTE *attribute)
const char * db_method_name(DB_METHOD *method)
int db_attribute_is_unique(DB_ATTRIBUTE *attribute)
#define ER_SM_INDEX_AMBIGUOUS
#define ER_OBJ_INVALID_METHOD
DB_METHOD * db_get_methods(DB_OBJECT *obj)
#define ER_OBJ_NOT_A_CLASS
char * classobj_describe_foreign_key_action(SM_FOREIGN_KEY_ACTION action)
int au_fetch_class_force(MOP op, SM_CLASS **class_, AU_FETCHMODE fetchmode)
struct sm_method_file * next
int db_attribute_is_reverse_indexed(DB_ATTRIBUTE *attribute)
void tp_domain_free(TP_DOMAIN *dom)
DB_CONST_C_CHAR db_get_string(const DB_VALUE *value)
const char * loader_commands
struct sm_method_argument * next
const char * db_get_loader_commands(DB_OBJECT *obj)
DB_OBJECT * db_resolution_class(DB_RESOLUTION *resolution)
DB_OBJECT * db_find_class_with_purpose(const char *name, bool for_update)
SM_METHOD * classobj_find_method(SM_CLASS *class_, const char *name, int class_method)
DB_OBJLIST * db_get_subclasses(DB_OBJECT *obj)