CUBRID Engine
latest
|
#include <setjmp.h>
#include <assert.h>
#include "class_object.h"
#include "compile_context.h"
#include "config.h"
#include "cursor.h"
#include "json_table_def.h"
#include "message_catalog.h"
#include "string_opfunc.h"
#include "system_parameter.h"
Go to the source code of this file.
Macros | |
#define | MAX_PRINT_ERROR_CONTEXT_LENGTH 64 |
#define | pt_cat_error(parser, node, setNo, msgNo, ...) pt_frob_error(parser, node, msgcat_message(MSGCAT_CATALOG_CUBRID, setNo, msgNo), ##__VA_ARGS__) |
#define | PT_ERROR(parser, node, msg) pt_frob_error(parser, node, msg) |
#define | PT_ERRORc(parser, node, msg) pt_frob_error( parser, node, "%s", msg) |
#define | PT_ERRORf(parser, node, msg, arg1) pt_frob_error(parser, node, msg, arg1) |
#define | PT_ERRORf2(parser, node, msg, arg1, arg2) pt_frob_error(parser, node, msg, arg1, arg2) |
#define | PT_ERRORf3(parser, node, msg, arg1, arg2, arg3) pt_frob_error(parser, node, msg, arg1, arg2, arg3) |
#define | PT_ERRORf4(parser, node, msg, arg1, arg2, arg3, arg4) pt_frob_error(parser, node, msg, arg1, arg2, arg3, arg4) |
#define | PT_ERRORf5(parser, node, msg, arg1, arg2, arg3, arg4, arg5) pt_frob_error(parser, node, msg, arg1, arg2, arg3, arg4, arg5) |
#define | PT_ERRORm(parser, node, setNo, msgNo) pt_cat_error(parser, node, setNo, msgNo) |
#define | PT_ERRORmf(parser, node, setNo, msgNo, arg1) pt_cat_error(parser, node, setNo, msgNo, arg1) |
#define | PT_ERRORmf2(parser, node, setNo, msgNo, arg1, arg2) pt_cat_error(parser, node, setNo, msgNo, arg1, arg2) |
#define | PT_ERRORmf3(parser, node, setNo, msgNo, arg1, arg2, arg3) pt_cat_error(parser, node, setNo, msgNo, arg1, arg2, arg3) |
#define | PT_ERRORmf4(parser, node, setNo, msgNo, arg1, arg2, arg3, arg4) pt_cat_error(parser, node, setNo, msgNo, arg1, arg2, arg3, arg4) |
#define | PT_ERRORmf5(parser, node, setNo, msgNo, arg1, arg2, arg3, arg4, arg5) pt_cat_error(parser, node, setNo, msgNo, arg1, arg2, arg3, arg4, arg5) |
#define | pt_cat_warning(parser, node, setNo, msgNo, ...) pt_frob_warning(parser, node, msgcat_message(MSGCAT_CATALOG_CUBRID, setNo, msgNo), ##__VA_ARGS__) |
#define | PT_WARNING(parser, node, msg) pt_frob_warning(parser, node, msg) |
#define | PT_WARNINGm(parser, node, setNo, msgNo) pt_cat_warning(parser, node, setNo, msgNo) |
#define | PT_WARNINGc(parser, node, msg) pt_frob_warning(parser, node, msg) |
#define | PT_WARNINGf(parser, node, msg, arg1) pt_cat_warning(parser, node, msg, arg1) |
#define | PT_WARNINGf2(parser, node, msg, arg1, arg2) pt_cat_warning(parser, node, msg, arg1, arg2) |
#define | PT_WARNINGf3(parser, node, msg, arg1, arg2, arg3) pt_cat_warning(parser, node, msg, arg1, arg2, arg3) |
#define | PT_WARNINGmf(parser, node, setNo, msgNo, arg1) pt_cat_warning(parser, node, setNo, msgNo, arg1) |
#define | PT_WARNINGmf2(parser, node, setNo, msgNo, arg1, arg2) pt_cat_warning(parser, node, setNo, msgNo, arg1, arg2) |
#define | PT_WARNINGmf3(parser, node, setNo, msgNo, arg1, arg2, arg3) pt_cat_warning(parser, node, setNo, msgNo, arg1, arg2, arg3) |
#define | PT_SET_JMP_ENV(parser) |
#define | PT_CLEAR_JMP_ENV(parser) |
#define | PT_INTERNAL_ERROR(parser, what) pt_internal_error((parser), __FILE__, __LINE__, (what)) |
#define | PT_IS_QUERY_NODE_TYPE(x) |
#define | PT_IS_CLASSOID_NAME(x) ( (x)->info.name.meta_class == PT_CLASSOID_ATTR) |
#define | PT_IS_NULL_NODE(e) |
#define | PT_IS_NUMERIC_TYPE(t) |
#define | PT_IS_DISCRETE_NUMBER_TYPE(t) |
#define | PT_IS_COUNTER_TYPE(t) PT_IS_DISCRETE_NUMBER_TYPE(t) |
#define | PT_IS_COLLECTION_TYPE(t) |
#define | PT_IS_STRING_TYPE(t) |
#define | PT_IS_NATIONAL_CHAR_STRING_TYPE(t) |
#define | PT_IS_SIMPLE_CHAR_STRING_TYPE(t) |
#define | PT_IS_CHAR_STRING_TYPE(t) |
#define | PT_IS_BIT_STRING_TYPE(t) |
#define | PT_IS_COMPLEX_TYPE(t) |
#define | PT_IS_DATE_TIME_WITH_TZ_TYPE(t) |
#define | PT_IS_DATE_TIME_TYPE(t) |
#define | PT_HAS_DATE_PART(t) |
#define | PT_HAS_TIME_PART(t) |
#define | PT_IS_LTZ_TYPE(t) ((t) == PT_TYPE_TIMESTAMPLTZ || (t) == PT_TYPE_DATETIMELTZ) |
#define | PT_IS_PRIMITIVE_TYPE(t) ( ((t) != PT_TYPE_OBJECT) && ((t) != PT_TYPE_NONE)) |
#define | PT_IS_PARAMETERIZED_TYPE(t) |
#define | PT_IS_LOB_TYPE(t) |
#define | PT_HAS_COLLATION(t) |
#define | PT_VALUE_GET_BYTES(node) |
#define | pt_is_select(n) PT_IS_SELECT(n) |
#define | pt_is_union(n) PT_IS_UNION(n) |
#define | pt_is_intersection(n) PT_IS_INTERSECTION(n) |
#define | pt_is_difference(n) PT_IS_DIFFERENCE(n) |
#define | pt_is_query(n) PT_IS_QUERY(n) |
#define | pt_is_correlated_subquery(n) PT_IS_CORRELATED_SUBQUERY(n) |
#define | pt_is_dot_node(n) PT_IS_DOT_NODE(n) |
#define | pt_is_expr_node(n) PT_IS_EXPR_NODE(n) |
#define | pt_is_function(n) PT_IS_FUNCTION(n) |
#define | pt_is_multi_col_term(n) PT_IS_MULTI_COL_TERM(n) |
#define | pt_is_name_node(n) PT_IS_NAME_NODE(n) |
#define | pt_is_oid_name(n) PT_IS_OID_NAME(n) |
#define | pt_is_value_node(n) PT_IS_VALUE_NODE(n) |
#define | pt_is_set_type(n) PT_IS_SET_TYPE(n) |
#define | pt_is_hostvar(n) PT_IS_HOSTVAR(n) |
#define | pt_is_input_hostvar(n) PT_IS_INPUT_HOSTVAR(n) |
#define | pt_is_output_hostvar(n) PT_IS_OUTPUT_HOSTVAR(n) |
#define | pt_is_const(n) PT_IS_CONST(n) |
#define | pt_is_parameter(n) PT_IS_PARAMETER(n) |
#define | pt_is_input_parameter(n) PT_IS_INPUT_PARAMETER(n) |
#define | pt_is_const_not_hostvar(n) PT_IS_CONST_NOT_HOSTVAR(n) |
#define | pt_is_const_input_hostvar(n) PT_IS_CONST_INPUT_HOSTVAR(n) |
#define | pt_is_cast_const_input_hostvar(n) PT_IS_CAST_CONST_INPUT_HOSTVAR(n) |
#define | pt_is_instnum(n) PT_IS_INSTNUM(n) |
#define | pt_is_orderbynum(n) PT_IS_ORDERBYNUM(n) |
#define | pt_is_distinct(n) PT_IS_DISTINCT(n) |
#define | pt_is_meta(n) PT_IS_META(n) |
#define | pt_is_update_object(n) PT_IS_UPDATE_OBJECT(n) |
#define | pt_is_unary(op) PT_IS_UNARY(op) |
#define | PT_IS_SELECT(n) ( (n) && ((n)->node_type == PT_SELECT) ) |
#define | PT_IS_UNION(n) ( (n) && ((n)->node_type == PT_UNION) ) |
#define | PT_IS_INTERSECTION(n) ( (n) && ((n)->node_type == PT_INTERSECTION) ) |
#define | PT_IS_DIFFERENCE(n) ( (n) && ((n)->node_type == PT_DIFFERENCE) ) |
#define | PT_IS_QUERY(n) ( (n) && (PT_IS_QUERY_NODE_TYPE((n)->node_type)) ) |
#define | PT_IS_CORRELATED_SUBQUERY(n) ( PT_IS_QUERY((n)) && ((n)->info.query.correlation_level > 0) ) |
#define | PT_IS_DOT_NODE(n) ( (n) && ((n)->node_type == PT_DOT_) ) |
#define | PT_IS_EXPR_NODE(n) ( (n) && ((n)->node_type == PT_EXPR) ) |
#define | PT_IS_ASSIGN_NODE(n) ( (n) && ((n)->node_type == PT_EXPR && (n)->info.expr.op == PT_ASSIGN) ) |
#define | PT_IS_FUNCTION(n) ( (n) && ((n)->node_type == PT_FUNCTION) ) |
#define | PT_IS_MULTI_COL_TERM(n) |
#define | PT_IS_NAME_NODE(n) ( (n) && ((n)->node_type == PT_NAME) ) |
#define | PT_IS_OID_NAME(n) |
#define | PT_IS_VALUE_NODE(n) ( (n) && ((n)->node_type == PT_VALUE) ) |
#define | PT_IS_INSERT_VALUE_NODE(n) ( (n) && ((n)->node_type == PT_INSERT_VALUE) ) |
#define | PT_IS_SET_TYPE(n) |
#define | PT_IS_HOSTVAR(n) ( (n) && ((n)->node_type == PT_HOST_VAR) ) |
#define | PT_IS_INPUT_HOSTVAR(n) |
#define | PT_IS_OUTPUT_HOSTVAR(n) |
#define | PT_IS_PARAMETER(n) |
#define | PT_IS_INPUT_PARAMETER(n) |
#define | PT_IS_CONST(n) |
#define | PT_IS_CONST_NOT_HOSTVAR(n) |
#define | PT_IS_CONST_INPUT_HOSTVAR(n) |
#define | PT_IS_CAST_CONST_INPUT_HOSTVAR(n) |
#define | PT_IS_INSTNUM(n) |
#define | PT_IS_ORDERBYNUM(n) ( (n) && ((n)->node_type == PT_EXPR && ((n)->info.expr.op == PT_ORDERBY_NUM)) ) |
#define | PT_IS_DISTINCT(n) ( (n) && PT_IS_QUERY_NODE_TYPE((n)->node_type) && (n)->info.query.all_distinct != PT_ALL ) |
#define | PT_IS_META(n) |
#define | PT_IS_HINT_NODE(n) ( (n) && ((n)->node_type == PT_NAME && (n)->info.name.meta_class == PT_HINT_NAME) ) |
#define | PT_IS_UPDATE_OBJECT(n) ( (n) && (n)->node_type == PT_UPDATE && (n)->info.update.spec == NULL ) |
#define | PT_IS_UNARY(op) |
#define | PT_IS_N_COLUMN_UPDATE_EXPR(n) |
#define | PT_DOES_FUNCTION_HAVE_DIFFERENT_ARGS(op) |
#define | PT_REQUIRES_HIERARCHICAL_QUERY(op) |
#define | PT_CHECK_HQ_OP_EXCEPT_PRIOR(op) |
#define | PT_IS_NUMBERING_AFTER_EXECUTION(op) |
#define | PT_IS_SERIAL(op) ( (op) == PT_CURRENT_VALUE || (op) == PT_NEXT_VALUE ) |
#define | PT_IS_EXPR_NODE_WITH_OPERATOR(n, op_type) ( (PT_IS_EXPR_NODE (n)) && ((n)->info.expr.op == (op_type)) ) |
#define | PT_IS_EXPR_WITH_PRIOR_ARG(x) |
#define | PT_NODE_DATA_TYPE(n) ( (n) ? (n)->data_type : NULL ) |
#define | PT_IS_SORT_SPEC_NODE(n) ( (n) && ((n)->node_type == PT_SORT_SPEC) ) |
#define | PT_IS_VALUE_QUERY(n) ((n)->flag.is_value_query == 1) |
#define | PT_SET_VALUE_QUERY(n) ((n)->flag.is_value_query = 1) |
#define | PT_IS_ORDER_DEPENDENT(n) |
#define | PT_IS_ANALYTIC_NODE(n) |
#define | PT_IS_POINTER_REF_NODE(n) |
#define | PT_IS_VACUUM_NODE(n) ( (n) && (n)->node_type == PT_VACUUM ) |
#define | PT_SET_ORDER_DEPENDENT_FLAG(n, f) |
#define | CLEAR_HOST_VARIABLES(parser_) |
#define | SET_HOST_VARIABLES_IF_INTERNAL_STATEMENT(parser_) |
#define | RESET_HOST_VARIABLES_IF_INTERNAL_STATEMENT(parser_) |
#define | IS_UPDATE_OBJ(node) (node->node_type == PT_UPDATE && node->info.update.object_parameter) |
#define | PT_NODE_INIT_OUTERLINK(n) |
#define | PT_NODE_COPY_NUMBER_OUTERLINK(t, s) |
#define | PT_NODE_MOVE_NUMBER_OUTERLINK(t, s) |
#define | PT_NODE_PRINT_TO_ALIAS(p, n, c) |
#define | PT_NODE_PRINT_VALUE_TO_TEXT(p, n) |
#define | CAST_POINTER_TO_NODE(p) |
#define | PT_EMPTY INT_MAX |
#define | MAX_NUM_PLAN_TRACE 100 |
#define | PT_GET_COLLATION_MODIFIER(p) |
#define | PT_SET_NODE_COLL_MODIFIER(p, coll) |
#define | PT_IS_SPEC_FLAG_SET(spec_, flags_) (((spec_)->info.spec.flag & (flags_)) != 0) |
#define | PT_SPEC_SPECIAL_INDEX_SCAN(spec_) |
#define | PT_SPEC_GET_RESERVED_NAME_TYPE(spec_) |
#define | PT_SHOULD_BIND_RESERVED_NAME(spec_) (PT_SPEC_GET_RESERVED_NAME_TYPE (spec_) != RESERVED_NAME_INVALID) |
#define | PT_SPEC_IS_DERIVED(spec_) ((spec_)->info.spec.derived_table != NULL) |
#define | PT_SPEC_IS_CTE(spec_) ((spec_)->info.spec.cte_pointer != NULL) |
#define | PT_SPEC_IS_ENTITY(spec_) ((spec_)->info.spec.entity_name != NULL) |
#define | PT_IS_FALSE_WHERE_VALUE(node) |
#define | PT_IS_SPEC_REAL_TABLE(spec_) PT_SPEC_IS_ENTITY(spec_) |
#define | PARTITIONED_SUB_CLASS_TAG "__p__" |
#define | PT_EXPR_INFO_CNF_DONE 1 /* CNF conversion has done? */ |
#define | PT_EXPR_INFO_EMPTY_RANGE 2 /* empty RANGE spec? */ |
#define | PT_EXPR_INFO_INSTNUM_C 4 /* compatible with inst_num() */ |
#define | PT_EXPR_INFO_INSTNUM_NC 8 /* not compatible with inst_num() */ |
#define | PT_EXPR_INFO_GROUPBYNUM_C 16 /* compatible with groupby_num() */ |
#define | PT_EXPR_INFO_GROUPBYNUM_NC 32 /* not compatible with groupby_num() */ |
#define | PT_EXPR_INFO_ORDERBYNUM_C PT_EXPR_INFO_INSTNUM_C /* compatible with orderby_num() */ |
#define | PT_EXPR_INFO_ORDERBYNUM_NC PT_EXPR_INFO_INSTNUM_NC /* not compatible with orderby_num() */ |
#define | PT_EXPR_INFO_TRANSITIVE 64 /* always true transitive join term ? */ |
#define | PT_EXPR_INFO_LEFT_OUTER 128 /* Oracle's left outer join operator */ |
#define | PT_EXPR_INFO_RIGHT_OUTER 256 /* Oracle's right outer join operator */ |
#define | PT_EXPR_INFO_COPYPUSH |
#define | PT_EXPR_INFO_FULL_RANGE 1024 /* non-null full RANGE term ? */ |
#define | PT_EXPR_INFO_CAST_NOFAIL |
#define | PT_EXPR_INFO_CAST_SHOULD_FOLD 4096 /* flag which controls if a cast expr should be folded */ |
#define | PT_EXPR_INFO_FUNCTION_INDEX 8192 /* function index expression flag */ |
#define | PT_EXPR_INFO_CAST_COLL_MODIFIER 16384 /* CAST is for COLLATION modifier */ |
#define | PT_EXPR_INFO_GROUPBYNUM_LIMIT |
#define | PT_EXPR_INFO_DO_NOT_AUTOPARAM 65536 /* don't auto parameterize expr at qo_do_auto_parameterize() */ |
#define | PT_EXPR_INFO_CAST_WRAP 131072 /* 0x20000, CAST is wrapped by compiling */ |
#define | PT_EXPR_INFO_IS_FLAGED(e, f) ((e)->info.expr.flag & (int) (f)) |
#define | PT_EXPR_INFO_SET_FLAG(e, f) (e)->info.expr.flag |= (int) (f) |
#define | PT_EXPR_INFO_CLEAR_FLAG(e, f) (e)->info.expr.flag &= (int) ~(f) |
#define | PT_GET_RESERVED_NAME_TYPE(reserved_id) |
#define | PT_GET_RESERVED_NAME_FIRST_AND_LAST(type, first, last) |
#define | PT_CHECK_RESERVED_NAME_BIND(spec_, reserved_id) |
#define | NAME_FROM_PT_DOT 1 |
#define | NAME_FROM_CLASSNAME_DOT_STAR 2 /* classname.* */ |
#define | NAME_FROM_STAR 3 /* * */ |
#define | NAME_IN_PATH_EXPR 4 |
#define | PT_NAME_INFO_DOT_SPEC 1 /* x, y of x.y.z */ |
#define | PT_NAME_INFO_DOT_NAME 2 /* z of x.y.z */ |
#define | PT_NAME_INFO_STAR 4 /* * */ |
#define | PT_NAME_INFO_DOT_STAR 8 /* classname.* */ |
#define | PT_NAME_INFO_CONSTANT 16 |
#define | PT_NAME_INFO_EXTERNAL 32 /* in case of TEXT type at attr definition or attr.object at attr description */ |
#define | PT_NAME_INFO_DESC 64 /* DESC on an index column name */ |
#define | PT_NAME_INFO_FILL_DEFAULT 128 /* whether default_value should be filled in */ |
#define | PT_NAME_INFO_GENERATED_OID |
#define | PT_NAME_ALLOW_REUSABLE_OID 512 /* ignore the REUSABLE_OID restrictions for this name */ |
#define | PT_NAME_GENERATED_DERIVED_SPEC 1024 /* attribute generated from derived spec */ |
#define | PT_NAME_FOR_UPDATE 2048 /* Table name in FOR UPDATE clause */ |
#define | PT_NAME_DEFAULTF_ACCEPTS 4096 /* name of table/column that default function accepts: real table's, cte's */ |
#define | PT_NAME_INFO_IS_FLAGED(e, f) ((e)->info.name.flag & (short) (f)) |
#define | PT_NAME_INFO_SET_FLAG(e, f) (e)->info.name.flag |= (short) (f) |
#define | PT_NAME_INFO_CLEAR_FLAG(e, f) (e)->info.name.flag &= (short) ~(f) |
#define | PT_IDX_HINT_ORDER(hint_node) |
#define | PT_SELECT_INFO_ANSI_JOIN 0x01 /* has ANSI join? */ |
#define | PT_SELECT_INFO_ORACLE_OUTER 0x02 /* has Oracle's outer join operator? */ |
#define | PT_SELECT_INFO_DUMMY 0x04 /* is dummy (i.e., 'SELECT * FROM x') ? */ |
#define | PT_SELECT_INFO_HAS_AGG 0x08 /* has any type of aggregation? */ |
#define | PT_SELECT_INFO_HAS_ANALYTIC 0x10 /* has analytic functions */ |
#define | PT_SELECT_INFO_MULTI_UPDATE_AGG 0x20 /* is query for multi-table update using aggregate */ |
#define | PT_SELECT_INFO_IDX_SCHEMA 0x40 /* is show index query */ |
#define | PT_SELECT_INFO_COLS_SCHEMA 0x80 /* is show columns query */ |
#define | PT_SELECT_FULL_INFO_COLS_SCHEMA 0x0100 /* is show columns query */ |
#define | PT_SELECT_INFO_IS_MERGE_QUERY 0x0200 /* is a query of a merge stmt */ |
#define | PT_SELECT_INFO_LIST_PUSHER |
#define | PT_SELECT_INFO_NO_STRICT_OID_CHECK |
#define | PT_SELECT_INFO_IS_UPD_DEL_QUERY 0x1000 /* set if select was built for an UPDATE or DELETE statement */ |
#define | PT_SELECT_INFO_FOR_UPDATE 0x2000 /* FOR UPDATE clause is active */ |
#define | PT_SELECT_INFO_DISABLE_LOOSE_SCAN 0x4000 /* loose scan not possible on query */ |
#define | PT_SELECT_INFO_MVCC_LOCK_NEEDED 0x8000 /* lock returned rows */ |
#define | PT_SELECT_INFO_READ_ONLY 0x010000 /* read-only system generated queries like show statement */ |
#define | PT_SELECT_INFO_IS_FLAGED(s, f) ((s)->info.query.q.select.flag & (f)) |
#define | PT_SELECT_INFO_SET_FLAG(s, f) (s)->info.query.q.select.flag |= (f) |
#define | PT_SELECT_INFO_CLEAR_FLAG(s, f) (s)->info.query.q.select.flag &= ~(f) |
#define | PT_MERGE_INFO_HAS_UNIQUE 1 /* has unique constraints */ |
#define | PT_MERGE_INFO_SERVER_OP 2 /* server side operation */ |
#define | PT_MERGE_INFO_INSERT_ONLY 4 /* merge condition always false */ |
#define | MAX_KEYWORD_SIZE (20 + 1 + 3) |
Functions | |
void | pt_init_node (PT_NODE *node, PT_NODE_TYPE node_type) |
void * | parser_allocate_string_buffer (const PARSER_CONTEXT *parser, const int length, const int align) |
bool | pt_is_json_value_type (PT_TYPE_ENUM type) |
bool | pt_is_json_doc_type (PT_TYPE_ENUM type) |
Variables | |
PT_RESERVED_NAME | pt_Reserved_name_table [] |
PARSER_CONTEXT * | parent_parser |
#define CAST_POINTER_TO_NODE | ( | p | ) |
Definition at line 607 of file parse_tree.h.
Referenced by parser_get_tree_list_diff(), pt_attribute_to_regu(), pt_data_type_init_value(), pt_false_where(), pt_find_attribute(), pt_fix_pseudocolumns_pos_regu_list(), pt_get_pred_attrs(), pt_name_equal(), pt_node_to_db_domain(), pt_node_to_db_type(), pt_point(), pt_print_bytes(), pt_resolve_analytic_references(), pt_set_connect_by_operator_node_etc(), pt_set_iscycle_node_etc(), pt_set_isleaf_node_etc(), pt_set_level_node_etc(), pt_set_numbering_node_etc(), pt_set_orderby_for_sort_limit_plan(), pt_set_qprior_node_etc(), pt_sort_spec_cover_groupby(), pt_split_attrs(), pt_split_hash_attrs(), pt_split_hash_attrs_for_HQ(), pt_to_analytic_node(), pt_to_constraint_pred(), pt_to_index_attrs(), pt_to_odku_info(), pt_to_outlist(), pt_to_pred_expr_local_with_arg(), pt_to_pred_expr_with_arg(), pt_to_regu_reserved_name(), pt_to_regu_variable(), qo_check_plan_index_for_multi_range_opt(), qo_collect_name_spec(), and qo_reduce_equality_terms().
#define CLEAR_HOST_VARIABLES | ( | parser_ | ) |
Definition at line 520 of file parse_tree.h.
#define IS_UPDATE_OBJ | ( | node | ) | (node->node_type == PT_UPDATE && node->info.update.object_parameter) |
Definition at line 548 of file parse_tree.h.
Referenced by pt_print_update().
#define MAX_KEYWORD_SIZE (20 + 1 + 3) |
Definition at line 3502 of file parse_tree.h.
Referenced by pt_find_keyword().
#define MAX_NUM_PLAN_TRACE 100 |
Definition at line 617 of file parse_tree.h.
Referenced by qo_top_plan_print_json(), and qo_top_plan_print_text().
#define MAX_PRINT_ERROR_CONTEXT_LENGTH 64 |
Definition at line 47 of file parse_tree.h.
Referenced by pt_record_error().
#define NAME_FROM_CLASSNAME_DOT_STAR 2 /* classname.* */ |
Definition at line 2537 of file parse_tree.h.
#define NAME_FROM_PT_DOT 1 |
Definition at line 2536 of file parse_tree.h.
#define NAME_FROM_STAR 3 /* * */ |
Definition at line 2538 of file parse_tree.h.
#define NAME_IN_PATH_EXPR 4 |
Definition at line 2539 of file parse_tree.h.
#define PARTITIONED_SUB_CLASS_TAG "__p__" |
Definition at line 2033 of file parse_tree.h.
Referenced by do_coalesce_partition_pre(), do_create_partition(), do_drop_partition_list(), do_promote_partition_by_name(), do_promote_partition_list(), do_rename_partition(), and pt_partition_name().
#define pt_cat_error | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
... | |||
) | pt_frob_error(parser, node, msgcat_message(MSGCAT_CATALOG_CUBRID, setNo, msgNo), ##__VA_ARGS__) |
Definition at line 50 of file parse_tree.h.
Referenced by func_type::Node::invalid_arg_count_error(), func_type::Node::invalid_arg_error(), func_type::Node::invalid_coll_error(), func_type::Node::preprocess(), pt_eval_function_type_new(), and func_type::Node::type_checking().
#define pt_cat_warning | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
... | |||
) | pt_frob_warning(parser, node, msgcat_message(MSGCAT_CATALOG_CUBRID, setNo, msgNo), ##__VA_ARGS__) |
Definition at line 72 of file parse_tree.h.
#define PT_CHECK_HQ_OP_EXCEPT_PRIOR | ( | op | ) |
Definition at line 448 of file parse_tree.h.
Referenced by pt_find_hq_op_except_prior().
#define PT_CHECK_RESERVED_NAME_BIND | ( | spec_, | |
reserved_id | |||
) |
Definition at line 2528 of file parse_tree.h.
Referenced by pt_bind_reserved_name().
#define PT_CLEAR_JMP_ENV | ( | parser | ) |
Definition at line 107 of file parse_tree.h.
Referenced by meth_translate(), mq_translate(), parser_parse_file(), parser_parse_string_with_escapes(), and pt_compile().
#define PT_DOES_FUNCTION_HAVE_DIFFERENT_ARGS | ( | op | ) |
Definition at line 427 of file parse_tree.h.
Referenced by pt_eval_expr_type().
#define PT_EMPTY INT_MAX |
Definition at line 616 of file parse_tree.h.
Referenced by pt_bind_names().
#define PT_ERROR | ( | parser, | |
node, | |||
msg | |||
) | pt_frob_error(parser, node, msg) |
Definition at line 54 of file parse_tree.h.
Referenced by do_set_pruning_type(), fill_in_insert_default_function_arguments(), mq_fetch_select_for_real_class_update(), mq_is_union_translation(), mq_push_paths(), mq_translate_select(), pt_bind_names(), pt_check_alter(), pt_check_attribute_domain(), pt_check_create_entity(), pt_check_create_index(), pt_check_cyclic_reference_in_view_spec(), pt_check_partition_values(), pt_check_set_count_set(), pt_db_value_initialize(), pt_expand_analytic_node(), pt_flush_classes(), pt_function_to_regu(), pt_insert_conjunct(), pt_insert_entity(), pt_make_connect_by_proc(), pt_make_vid(), pt_no_double_insert_assignments(), pt_resolve_vclass_args(), pt_set_analytic_node_etc(), pt_to_aggregate_node(), pt_to_analytic_final_node(), pt_to_analytic_node(), pt_to_fetch_as_scan_proc(), pt_to_fetch_proc(), ptqo_to_merge_list_proc(), ptqo_to_scan_proc(), and tr_check_correlation().
#define PT_ERRORc | ( | parser, | |
node, | |||
msg | |||
) | pt_frob_error( parser, node, "%s", msg) |
Definition at line 55 of file parse_tree.h.
Referenced by copy_node_in_tree_pre(), object_printer::describe_class(), mq_replace_virtual_oid_with_real_oid(), pt_bind_name_or_path_in_scope(), pt_check_access_status(), pt_check_alter_partition(), pt_check_defaultf(), pt_check_show_index(), pt_check_sub_insert(), pt_check_table_in_show_heap(), pt_check_with_info(), pt_class_pre_fetch(), pt_difference_sets(), pt_evaluate_db_value_expr(), pt_evaluate_function_w_args(), pt_evaluate_tree_internal(), pt_find_attr_in_class_list(), pt_find_class_attribute(), pt_flush_classes(), pt_fold_const_expr(), pt_help_show_create_table(), pt_make_class_access_spec(), pt_make_flat_name_list(), pt_make_subclass_list(), pt_print_node_value(), pt_product_sets(), pt_resolve_partition_spec(), pt_resolve_using_index(), pt_resolve_vclass_args(), pt_semantic_check_local(), pt_seq_value_to_db(), pt_set_class_chn(), pt_set_host_variables(), pt_set_table_to_db(), pt_set_value_to_db(), pt_to_delete_xasl(), pt_to_insert_xasl(), pt_to_regu_variable(), pt_union_sets(), and pt_xasl_node_to_domain().
#define PT_ERRORf | ( | parser, | |
node, | |||
msg, | |||
arg1 | |||
) | pt_frob_error(parser, node, msg, arg1) |
Definition at line 57 of file parse_tree.h.
Referenced by pt_bind_names(), pt_eval_path_expr(), pt_fold_const_expr(), pt_function_to_regu(), pt_rewrite_set_eq_set(), and qo_optimize_queries_post().
#define PT_ERRORf2 | ( | parser, | |
node, | |||
msg, | |||
arg1, | |||
arg2 | |||
) | pt_frob_error(parser, node, msg, arg1, arg2) |
Definition at line 58 of file parse_tree.h.
#define PT_ERRORf3 | ( | parser, | |
node, | |||
msg, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) | pt_frob_error(parser, node, msg, arg1, arg2, arg3) |
Definition at line 59 of file parse_tree.h.
#define PT_ERRORf4 | ( | parser, | |
node, | |||
msg, | |||
arg1, | |||
arg2, | |||
arg3, | |||
arg4 | |||
) | pt_frob_error(parser, node, msg, arg1, arg2, arg3, arg4) |
Definition at line 60 of file parse_tree.h.
#define PT_ERRORf5 | ( | parser, | |
node, | |||
msg, | |||
arg1, | |||
arg2, | |||
arg3, | |||
arg4, | |||
arg5 | |||
) | pt_frob_error(parser, node, msg, arg1, arg2, arg3, arg4, arg5) |
Definition at line 61 of file parse_tree.h.
#define PT_ERRORm | ( | parser, | |
node, | |||
setNo, | |||
msgNo | |||
) | pt_cat_error(parser, node, setNo, msgNo) |
Definition at line 63 of file parse_tree.h.
Referenced by build_xasl_for_server_delete(), call_method(), check_default_on_update_clause(), check_for_cons(), check_timeout_value(), compile_partition_expression(), create_or_drop_index_helper(), do_alter_one_clause_with_template(), do_insert_at_server(), do_prepare_delete(), do_prepare_insert_internal(), do_prepare_merge(), do_prepare_select(), do_prepare_update(), do_recreate_filter_index_constr(), do_select_internal(), do_set_xaction(), get_natural_join_attrs_from_pt_spec(), meth_translate_spec(), mq_check_vclass_for_insert(), mq_class_lambda(), mq_evaluate_expression(), mq_evaluate_expression_having_serial(), mq_invert_insert_select(), mq_rewrite_order_dependent_query(), mq_rewrite_upd_del_top_level_specs(), mq_substitute_subquery_in_statement(), mq_translate_delete(), mq_translate_insert(), mq_translate_update(), pt_append_assignment_references(), pt_bind_names(), pt_bind_names_post(), pt_check_alter(), pt_check_alter_partition(), pt_check_analytic_function(), pt_check_assignments(), pt_check_attribute_domain(), pt_check_auto_increment_table_option(), pt_check_cast_op(), pt_check_constraint(), pt_check_create_entity(), pt_check_create_index(), pt_check_create_user(), pt_check_create_view(), pt_check_data_default(), pt_check_default_vclass_query_spec(), pt_check_defaultf(), pt_check_drop(), pt_check_enum_data_type(), pt_check_expr_collation(), pt_check_filter_index_expr(), pt_check_filter_index_expr_pre(), pt_check_for_update_clause(), pt_check_for_update_subquery(), pt_check_function_index_expr(), pt_check_function_index_expr_pre(), pt_check_grammar_charset_collation(), pt_check_group_concat_order_by(), pt_check_into_clause(), pt_check_isolation_lvl(), pt_check_kill(), pt_check_method(), pt_check_odku_assignments(), pt_check_order_by(), pt_check_partitions(), pt_check_show_index(), pt_check_table_in_show_heap(), pt_check_union_type_compatibility_of_values_query(), pt_check_vclass_query_spec(), pt_check_where(), pt_check_with_info(), pt_check_xaction_list(), pt_coerce_range_expr_arguments(), pt_create_delete_stmt(), pt_db_value_initialize(), pt_dbval_to_value(), pt_eval_expr_type(), pt_eval_type_pre(), pt_evaluate_db_value_expr(), pt_evaluate_tree_internal(), pt_expand_analytic_node(), pt_find_attr_in_class_list(), pt_fix_buildlist_aggregate_cume_dist_percent_rank(), pt_fix_enumeration_comparison(), pt_fix_interpolation_aggregate_function_order_by(), pt_function_name_is_spec_attr(), pt_function_to_regu(), pt_gen_isnull_preds(), pt_get_collation_info_for_collection_type(), pt_get_collation_of_collection(), pt_get_compatible_info(), pt_init_pred_expr_context(), pt_is_function_index_expr(), pt_make_aptr_parent_node(), pt_make_flat_name_list(), pt_make_regu_subquery(), pt_make_table_info(), pt_no_attr_and_meta_attr_updates(), pt_node_to_enumeration_expr(), pt_partition_name(), pt_path_chain(), pt_pointer_stack_push(), pt_process_spec_for_update(), pt_resolve_cte_specs(), pt_resolve_default_external(), pt_resolve_default_value(), pt_resolve_natural_join_internal(), pt_resolve_object(), pt_resolve_showstmt_args_unnamed(), pt_resolve_sort_spec_expr(), pt_resolve_star_reserved_names(), pt_resolve_vclass_args(), pt_rewrite_derived_for_upd_del(), pt_rewrite_to_auto_param(), pt_semantic_check_local(), pt_set_host_variables(), pt_set_reserved_name_key_type(), pt_to_analytic_final_node(), pt_to_buildlist_proc(), pt_to_buildschema_proc(), pt_to_buildvalue_proc(), pt_to_compatible_cast(), pt_to_constraint_pred(), pt_to_false_subquery(), pt_to_func_pred(), pt_to_insert_xasl(), pt_to_odku_info(), pt_to_outlist(), pt_to_position_regu_variable_list(), pt_to_pred_expr_local_with_arg(), pt_to_regu_variable(), pt_type_cast_vclass_query_spec_column(), pt_value_links_add(), pt_values_query_to_compatible_cast(), pt_where_type(), pt_wrap_collection_with_cast_op(), qo_plan_compute_iscan_sort_list(), qo_reduce_equality_terms(), qo_reduce_order_by(), qo_reduce_order_by_for(), qo_rewrite_one_like_term(), set_iso_level(), update_at_server(), and update_check_for_constraints().
#define PT_ERRORmf | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1 | |||
) | pt_cat_error(parser, node, setNo, msgNo, arg1) |
Definition at line 64 of file parse_tree.h.
Referenced by create_or_drop_index_helper(), do_alter_serial(), do_create_serial(), do_drop_serial(), do_drop_variable(), do_evaluate_insert_values(), do_execute_select(), do_recreate_filter_index_constr(), do_replace_names_for_insert_values_pre(), do_select_internal(), do_set_pruning_type(), mq_check_delete(), mq_check_non_updatable_vclass_oid(), mq_class_lambda(), mq_evaluate_check_option(), mq_fetch_one_real_class_get_cache(), mq_fetch_subqueries(), mq_fetch_subqueries_for_update_local(), mq_invert_insert_select(), mq_replace_virtual_oid_with_real_oid(), mq_set_types(), mq_substitute_select_in_statement(), mq_virtual_queries(), pt_add_lock_class(), pt_assignment_class_compatible(), pt_bind_name_or_path_in_scope(), pt_bind_names(), pt_bind_names_post(), pt_check_access_status(), pt_check_alter(), pt_check_alter_partition(), pt_check_analytic_function(), pt_check_attribute_domain(), pt_check_class_eq(), pt_check_create_entity(), pt_check_create_index(), pt_check_create_view(), pt_check_cume_dist_percent_rank_order_by(), pt_check_cyclic_reference_in_view_spec(), pt_check_data_default(), pt_check_drop(), pt_check_expr_collation(), pt_check_filter_index_expr(), pt_check_filter_index_expr_pre(), pt_check_function_collation(), pt_check_grammar_charset_collation(), pt_check_grant_revoke(), pt_check_group_concat_order_by(), pt_check_method(), pt_check_order_by(), pt_check_partitions(), pt_check_path_eq(), pt_check_range_partition_strict_increasing(), pt_check_recursive_expr_collation(), pt_check_show_index(), pt_check_single_valued_node(), pt_check_sub_insert(), pt_check_table_in_show_heap(), pt_check_union_type_compatibility_of_values_query(), pt_check_unique_attr(), pt_check_unique_exposed(), pt_check_unique_names(), pt_check_user_exists(), pt_check_vclass_query_spec(), pt_check_with_info(), pt_class_pre_fetch(), pt_db_value_initialize(), pt_dbval_to_value(), pt_eval_function_type_old(), pt_eval_opt_type(), pt_eval_path_expr(), pt_evaluate_db_value_expr(), pt_evaluate_tree_internal(), pt_expr_disallow_op_pre(), pt_find_users_class(), pt_flat_spec_pre(), pt_get_one_tuple_from_list_id(), pt_get_resolution(), pt_is_function_index_expr(), pt_make_flat_name_list(), pt_make_regu_numbering(), pt_resolve_correlation(), pt_resolve_cte_specs(), pt_resolve_group_having_alias_pt_name(), pt_resolve_method_type(), pt_resolve_names(), pt_resolve_object(), pt_resolve_partition_spec(), pt_resolve_showstmt_args_named(), pt_resolve_showstmt_args_unnamed(), pt_resolve_sort_spec_expr(), pt_resolve_using_index(), pt_semantic_check_local(), pt_set_attr_list_types(), pt_set_table_to_db(), pt_to_regu_variable(), pt_to_sort_list(), pt_undef_names_pre(), pt_value_links_add(), pt_value_to_db(), and qo_reduce_order_by().
#define PT_ERRORmf2 | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1, | |||
arg2 | |||
) | pt_cat_error(parser, node, setNo, msgNo, arg1, arg2) |
Definition at line 65 of file parse_tree.h.
Referenced by check_arg_valid(), check_default_on_update_clause(), object_printer::describe_class(), do_add_attribute_from_select_column(), do_alter_one_clause_with_template(), do_cast_host_variables_to_expected_domain(), get_att_default_from_def(), map_iso_levels(), mq_check_authorization_path_entities(), mq_check_using_index(), mq_fetch_expression_for_real_class_update(), mq_fetch_subqueries_for_update_local(), mq_path_spec_lambda(), mq_translate_tree(), pt_apply_union_select_list_collation(), pt_bind_names(), pt_check_alter(), pt_check_cast_op(), pt_check_create_entity(), pt_check_cume_dist_percent_rank_order_by(), pt_check_drop(), pt_check_enum_data_type(), pt_check_expr_collation(), pt_check_into_clause(), pt_check_mutable_attributes(), pt_check_order_by(), pt_check_partition_values(), pt_check_set_count_set(), pt_check_truncate(), pt_check_union_compatibility(), pt_check_union_type_compatibility_of_values_query(), pt_check_unique_attr(), pt_check_user_owns_class(), pt_check_vclass_query_spec(), pt_check_vclass_union_spec(), pt_coerce_expression_argument(), pt_coerce_insert_values(), pt_coerce_value_internal(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_eval_path_expr(), pt_evaluate_db_value_expr(), pt_get_common_type_for_union(), pt_get_compatible_info(), pt_get_resolution(), pt_get_select_list(), pt_get_values_query_compatible_info(), pt_help_show_create_table(), pt_make_regu_hostvar(), pt_no_double_insert_assignments(), pt_no_double_updates(), pt_node_to_enumeration_expr(), pt_semantic_check_local(), pt_set_host_variables(), pt_value_to_db(), qo_reduce_equality_terms(), and validate_attribute_domain().
#define PT_ERRORmf3 | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) | pt_cat_error(parser, node, setNo, msgNo, arg1, arg2, arg3) |
Definition at line 66 of file parse_tree.h.
Referenced by do_insert_template(), pt_bind_spec_attrs(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_get_resolution(), pt_insert_entity(), pt_set_attr_list_types(), and validate_attribute_domain().
#define PT_ERRORmf4 | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1, | |||
arg2, | |||
arg3, | |||
arg4 | |||
) | pt_cat_error(parser, node, setNo, msgNo, arg1, arg2, arg3, arg4) |
Definition at line 67 of file parse_tree.h.
Referenced by pt_eval_expr_type(), pt_eval_function_type_old(), and pt_get_compatible_info().
#define PT_ERRORmf5 | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1, | |||
arg2, | |||
arg3, | |||
arg4, | |||
arg5 | |||
) | pt_cat_error(parser, node, setNo, msgNo, arg1, arg2, arg3, arg4, arg5) |
Definition at line 68 of file parse_tree.h.
Referenced by pt_eval_function_type_old().
#define PT_EXPR_INFO_CAST_COLL_MODIFIER 16384 /* CAST is for COLLATION modifier */ |
Definition at line 2231 of file parse_tree.h.
Referenced by pt_check_cast_op(), pt_coerce_node_collation(), pt_eval_expr_type(), pt_expr_is_allowed_as_function_index(), pt_lambda_check_reduce_eq(), pt_print_expr(), pt_to_regu_variable(), and qo_collect_name_spec().
#define PT_EXPR_INFO_CAST_NOFAIL |
Definition at line 2225 of file parse_tree.h.
Referenced by pt_coerce_expression_argument(), pt_eval_expr_type(), pt_evaluate_db_value_expr(), pt_to_regu_variable(), and pt_wrap_collection_with_cast_op().
#define PT_EXPR_INFO_CAST_SHOULD_FOLD 4096 /* flag which controls if a cast expr should be folded */ |
Definition at line 2227 of file parse_tree.h.
Referenced by pt_check_cast_op(), pt_coerce_node_collation(), pt_fold_const_expr(), pt_get_collation_info(), pt_make_cast_with_compatible_info(), pt_type_cast_vclass_query_spec_column(), pt_wrap_collection_with_cast_op(), and pt_wrap_with_cast_op().
#define PT_EXPR_INFO_CAST_WRAP 131072 /* 0x20000, CAST is wrapped by compiling */ |
Definition at line 2236 of file parse_tree.h.
Referenced by pt_to_regu_variable(), and pt_wrap_with_cast_op().
#define PT_EXPR_INFO_CLEAR_FLAG | ( | e, | |
f | |||
) | (e)->info.expr.flag &= (int) ~(f) |
Definition at line 2240 of file parse_tree.h.
Referenced by mq_copypush_sargable_terms_helper(), pt_do_cnf(), pt_groupbynum_compatibility(), pt_instnum_compatibility(), qo_apply_range_intersection_helper(), and qo_merge_range_helper().
#define PT_EXPR_INFO_CNF_DONE 1 /* CNF conversion has done? */ |
Definition at line 2207 of file parse_tree.h.
Referenced by pt_cnf(), and pt_do_cnf().
#define PT_EXPR_INFO_COPYPUSH |
Definition at line 2220 of file parse_tree.h.
Referenced by mq_copypush_sargable_terms_helper(), and qo_optimize_queries_post().
#define PT_EXPR_INFO_DO_NOT_AUTOPARAM 65536 /* don't auto parameterize expr at qo_do_auto_parameterize() */ |
Definition at line 2235 of file parse_tree.h.
Referenced by qo_do_auto_parameterize(), and qo_reduce_equality_terms().
#define PT_EXPR_INFO_EMPTY_RANGE 2 /* empty RANGE spec? */ |
Definition at line 2208 of file parse_tree.h.
Referenced by qo_apply_range_intersection_helper(), and qo_merge_range_helper().
#define PT_EXPR_INFO_FULL_RANGE 1024 /* non-null full RANGE term ? */ |
Definition at line 2223 of file parse_tree.h.
Referenced by qo_range_selectivity().
#define PT_EXPR_INFO_FUNCTION_INDEX 8192 /* function index expression flag */ |
Definition at line 2229 of file parse_tree.h.
Referenced by pt_is_function_index_expression(), and pt_mark_function_index_expression().
#define PT_EXPR_INFO_GROUPBYNUM_C 16 /* compatible with groupby_num() */ |
Definition at line 2211 of file parse_tree.h.
Referenced by pt_groupbynum_compatibility().
#define PT_EXPR_INFO_GROUPBYNUM_LIMIT |
Definition at line 2233 of file parse_tree.h.
Referenced by pt_limit_to_numbering_expr(), and pt_to_buildlist_proc().
#define PT_EXPR_INFO_GROUPBYNUM_NC 32 /* not compatible with groupby_num() */ |
Definition at line 2212 of file parse_tree.h.
Referenced by pt_groupbynum_compatibility().
#define PT_EXPR_INFO_INSTNUM_C 4 /* compatible with inst_num() */ |
Definition at line 2209 of file parse_tree.h.
Referenced by pt_instnum_compatibility(), and qo_reduce_order_by().
#define PT_EXPR_INFO_INSTNUM_NC 8 /* not compatible with inst_num() */ |
Definition at line 2210 of file parse_tree.h.
Referenced by pt_instnum_compatibility(), and pt_semantic_check_local().
#define PT_EXPR_INFO_IS_FLAGED | ( | e, | |
f | |||
) | ((e)->info.expr.flag & (int) (f)) |
Definition at line 2238 of file parse_tree.h.
Referenced by pt_bind_names(), pt_check_cast_op(), pt_cnf(), pt_coerce_node_collation(), pt_eval_expr_type(), pt_evaluate_db_value_expr(), pt_expr_is_allowed_as_function_index(), pt_fold_const_expr(), pt_get_collation_info(), pt_groupbynum_compatibility(), pt_instnum_compatibility(), pt_is_function_index_expression(), pt_lambda_check_reduce_eq(), pt_print_expr(), pt_semantic_check_local(), pt_to_buildlist_proc(), pt_to_regu_variable(), qo_analyze_term(), qo_apply_range_intersection_helper(), qo_collect_name_spec(), qo_discover_edges(), qo_do_auto_parameterize(), qo_optimize_queries_post(), and qo_range_selectivity().
#define PT_EXPR_INFO_LEFT_OUTER 128 /* Oracle's left outer join operator */ |
Definition at line 2218 of file parse_tree.h.
Referenced by pt_bind_names().
#define PT_EXPR_INFO_ORDERBYNUM_C PT_EXPR_INFO_INSTNUM_C /* compatible with orderby_num() */ |
Definition at line 2213 of file parse_tree.h.
Referenced by qo_reduce_order_by(), and qo_reduce_order_by_for().
#define PT_EXPR_INFO_ORDERBYNUM_NC PT_EXPR_INFO_INSTNUM_NC /* not compatible with orderby_num() */ |
Definition at line 2215 of file parse_tree.h.
#define PT_EXPR_INFO_RIGHT_OUTER 256 /* Oracle's right outer join operator */ |
Definition at line 2219 of file parse_tree.h.
Referenced by pt_bind_names().
#define PT_EXPR_INFO_SET_FLAG | ( | e, | |
f | |||
) | (e)->info.expr.flag |= (int) (f) |
Definition at line 2239 of file parse_tree.h.
Referenced by mq_copypush_sargable_terms_helper(), pt_cnf(), pt_coerce_expression_argument(), pt_coerce_node_collation(), pt_eval_expr_type(), pt_fold_const_expr(), pt_groupbynum_compatibility(), pt_instnum_compatibility(), pt_limit_to_numbering_expr(), pt_make_cast_with_compatible_info(), pt_mark_function_index_expression(), pt_type_cast_vclass_query_spec_column(), pt_wrap_collection_with_cast_op(), pt_wrap_with_cast_op(), qo_apply_range_intersection_helper(), qo_reduce_equality_terms(), qo_reduce_order_by(), and qo_reduce_order_by_for().
#define PT_EXPR_INFO_TRANSITIVE 64 /* always true transitive join term ? */ |
Definition at line 2217 of file parse_tree.h.
Referenced by qo_analyze_term(), qo_discover_edges(), and qo_reduce_equality_terms().
#define PT_GET_COLLATION_MODIFIER | ( | p | ) |
Definition at line 619 of file parse_tree.h.
Referenced by pt_check_cast_op(), pt_check_expr_collation(), pt_eval_expr_type(), pt_get_collation_info(), pt_get_collation_info_for_collection_type(), pt_lambda_check_reduce_eq(), pt_print_expr(), pt_print_value(), pt_to_regu_variable(), and qo_collect_name_spec().
#define PT_GET_RESERVED_NAME_FIRST_AND_LAST | ( | type, | |
first, | |||
last | |||
) |
Definition at line 2501 of file parse_tree.h.
Referenced by pt_make_reserved_value_list(), and pt_resolve_star_reserved_names().
#define PT_GET_RESERVED_NAME_TYPE | ( | reserved_id | ) |
Definition at line 2477 of file parse_tree.h.
#define PT_HAS_COLLATION | ( | t | ) |
Definition at line 243 of file parse_tree.h.
Referenced by do_add_attribute(), func_type::is_type_with_collation(), pt_add_type_to_set(), pt_apply_union_select_list_collation(), pt_assignment_compatible(), pt_attr_check_default_cs_coll(), pt_cast_needs_wrap_for_collation(), pt_check_alter(), pt_check_and_replace_hostvar(), pt_check_cast_op(), pt_check_create_entity(), pt_check_create_index(), pt_check_expr_collation(), pt_check_function_collation(), pt_check_partition_values(), pt_check_recursive_expr_collation(), pt_coerce_node_collation(), pt_coerce_value_internal(), pt_db_value_initialize(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_fix_arguments_collation_flag(), pt_get_collation_info(), pt_get_collation_of_collection(), pt_get_compatible_info_from_node(), pt_get_select_list_coll_compat(), pt_has_non_idx_sarg_coll_pre(), pt_is_compatible_without_cast(), pt_lambda_check_reduce_eq(), pt_make_cast_with_compatible_info(), pt_make_prim_data_type(), pt_node_to_enumeration_expr(), pt_print_attr_def(), pt_print_expr(), pt_print_value(), pt_to_compatible_cast(), pt_upd_domain_info(), pt_wrap_collection_with_cast_op(), pt_wrap_with_cast_op(), qo_collect_name_spec(), qo_find_like_rewrite_bound(), and func_type::Node::set_return_type().
#define PT_HAS_DATE_PART | ( | t | ) |
Definition at line 205 of file parse_tree.h.
Referenced by pt_are_equivalent_types(), and pt_eval_expr_type().
#define PT_HAS_TIME_PART | ( | t | ) |
Definition at line 214 of file parse_tree.h.
Referenced by pt_eval_expr_type().
#define PT_IDX_HINT_ORDER | ( | hint_node | ) |
Definition at line 2607 of file parse_tree.h.
Referenced by qo_rewrite_index_hints().
#define PT_INTERNAL_ERROR | ( | parser, | |
what | |||
) | pt_internal_error((parser), __FILE__, __LINE__, (what)) |
Definition at line 112 of file parse_tree.h.
Referenced by build_graph_for_entity(), check_merge_trigger(), check_trigger(), copy_node_in_tree_pre(), do_create_odku_stmt(), do_delete(), do_get_prepared_statement_info(), do_prepare_delete(), do_prepare_update(), do_savepoint(), do_update(), get_att_default_from_def(), grok_classes(), meth_add_conj(), meth_gen_as_attr_list(), meth_get_method_params(), meth_grab_conj(), meth_make_unique_range_var(), meth_replace_call(), meth_replace_method_calls(), meth_replace_method_params(), meth_replace_referenced_attrs(), meth_translate_spec(), mq_bump_order_dep_corr_lvl_pre(), mq_class_lambda(), mq_conditionally_add_objects(), mq_derived_path(), mq_fetch_expression_for_real_class_update(), mq_fix_derived_in_union(), mq_generate_unique(), mq_insert_symbol(), mq_invert_assign(), mq_is_outer_join_spec(), mq_is_pushable_subquery(), mq_lambda_node_pre(), mq_lookup_symbol(), mq_make_derived_spec(), mq_push_arg2(), mq_push_dot_in_query(), mq_rewrite_aggregate_as_derived(), mq_rewrite_order_dependent_nodes(), mq_rewrite_order_dependent_query(), mq_rewrite_query_as_derived(), mq_rewrite_vclass_spec_as_derived(), mq_substitute_path(), mq_substitute_path_pre(), mq_substitute_select_in_statement(), mq_substitute_subquery_in_statement(), mq_translate_insert(), mq_translate_paths(), mq_update_attribute(), mq_update_order_by(), mq_virtual_queries(), parser_generate_xasl_post(), parser_generate_xasl_proc(), pt_add_type_to_set(), pt_agg_orderby_to_sort_list(), pt_append_omitted_on_update_expr_assignments(), pt_attribute_to_regu(), pt_bind_helper(), pt_bind_names(), pt_bind_names_post(), pt_bind_spec_attrs(), pt_build_analytic_eval_list(), pt_check_assignments(), pt_check_auto_increment_table_option(), pt_check_cast_op(), pt_check_defaultf(), pt_check_enum_data_type(), pt_check_method(), pt_check_odku_assignments(), pt_check_show_index(), pt_check_sub_insert(), pt_check_table_in_show_heap(), pt_compare_bounds_to_value(), pt_compile_trigger_stmt(), pt_create_param_for_value(), pt_dbval_to_value(), pt_eval_path_expr(), pt_eval_type(), pt_evaluate_tree_internal(), pt_expand_analytic_node(), pt_expr_to_sort_spec(), pt_fillin_type_size(), pt_filter_pseudo_specs(), pt_find_aggregate_names(), pt_find_attr_in_class_list(), pt_find_class_of_index(), pt_find_entity(), pt_find_lck_class_from_partition(), pt_find_omitted_default_expr(), pt_find_outer_entity_in_scopes(), pt_find_path_entity(), pt_fold_constants_post(), pt_gather_constraints(), pt_gen_isnull_preds(), pt_gen_simple_merge_plan(), pt_generate_simple_analytic_eval_type(), pt_get_attr_list_of_derived_table(), pt_get_attributes(), pt_get_object_data_type(), pt_get_resolution(), pt_insert_conjunct(), pt_insert_entity(), pt_insert_host_var(), pt_invert(), pt_is_correlation_name(), pt_is_on_list(), pt_lambda_with_arg(), pt_limit_to_numbering_expr(), pt_make_connect_by_proc(), pt_make_flat_name_list(), pt_make_method_call(), pt_make_pred_term_is(), pt_make_prim_data_type(), pt_make_regu_hostvar(), pt_make_regu_iscycle(), pt_make_regu_isleaf(), pt_make_regu_level(), pt_make_subclass_list(), pt_make_tuple_value_reference(), pt_mark_function_index_expression(), pt_mark_spec_list_for_delete(), pt_mark_spec_list_for_update(), pt_must_have_exposed_name(), pt_mvcc_prepare_upd_del_select(), pt_negate_expr(), pt_no_double_updates(), pt_object_to_data_type(), pt_ordbynum_to_key_limit_multiple_ranges(), pt_plan_cte(), pt_pointer_stack_pop(), pt_pop_symbol_info(), pt_process_spec_for_delete(), pt_process_spec_for_update(), pt_record_error(), pt_regu_to_dbvalue(), pt_remove_unusable_sort_specs(), pt_replace_referenced_attributes(), pt_resolve_analytic_references(), pt_resolve_correlation(), pt_resolve_cte_specs(), pt_resolve_hint(), pt_resolve_hint_args(), pt_resolve_object(), pt_resolve_partition_spec(), pt_resolve_sort_spec_expr(), pt_resolve_using_index(), pt_rewrite_derived_for_upd_del(), pt_rewrite_set_eq_set(), pt_select_list_to_one_col(), pt_set_attr_list_types(), pt_set_default_data_type(), pt_set_orderby_for_sort_limit_plan(), pt_sm_attribute_default_value_to_node(), pt_sort_list_from_metadomain(), pt_split_delete_stmt(), pt_substitute_analytic_references(), pt_to_aggregate_node(), pt_to_analytic_node(), pt_to_index_info(), pt_to_insert_xasl(), pt_to_list_key(), pt_to_merge_insert_query(), pt_to_merge_update_query(), pt_to_merge_update_xasl(), pt_to_odku_info(), pt_to_order_siblings_by(), pt_to_pred_expr_local_with_arg(), pt_to_pred_expr_with_arg(), pt_to_range_key(), pt_to_rangelist_key(), pt_to_regu_variable(), pt_to_single_key(), pt_to_sort_list(), pt_to_upd_del_query(), pt_to_update_xasl(), pt_where_type(), pt_where_type_keep_true(), pt_wrap_expr_w_exp_dom_cast(), qo_allocate_like_bound_for_index_scan(), qo_analyze_path_join(), qo_apply_range_intersection(), qo_find_like_rewrite_bound(), qo_reduce_comp_pair_terms(), qo_rewrite_like_for_index_scan(), qo_rewrite_one_like_term(), qo_rewrite_subqueries(), setof_mop_to_setof_vobj(), and update_object_by_oid().
#define PT_IS_ANALYTIC_NODE | ( | n | ) |
Definition at line 489 of file parse_tree.h.
Referenced by pt_adjust_analytic_sort_specs(), pt_expand_analytic_node(), pt_initialize_analytic_info(), pt_set_analytic_node_etc(), pt_to_analytic_final_node(), pt_to_analytic_node(), and pt_to_buildlist_proc().
#define PT_IS_ASSIGN_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_EXPR && (n)->info.expr.op == PT_ASSIGN) ) |
Definition at line 308 of file parse_tree.h.
Referenced by pt_check_union_type_compatibility_of_values_query().
#define PT_IS_BIT_STRING_TYPE | ( | t | ) |
Definition at line 170 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), pt_are_equivalent_types(), and pt_coerce_range_expr_arguments().
#define pt_is_cast_const_input_hostvar | ( | n | ) | PT_IS_CAST_CONST_INPUT_HOSTVAR(n) |
Definition at line 276 of file parse_tree.h.
#define PT_IS_CAST_CONST_INPUT_HOSTVAR | ( | n | ) |
Definition at line 381 of file parse_tree.h.
Referenced by pt_get_query_limit_from_orderby_for().
#define PT_IS_CHAR_STRING_TYPE | ( | t | ) |
Definition at line 164 of file parse_tree.h.
Referenced by pt_add_type_to_set(), pt_are_equivalent_types(), pt_assignment_compatible(), pt_check_and_coerce_to_date(), pt_coerce_node_collation(), pt_coerce_range_expr_arguments(), pt_coerce_str_to_time_date_utime_datetime(), pt_domain_to_data_type(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_eval_opt_type(), pt_evaluate_db_value_expr(), pt_get_common_datetime_type(), pt_get_default_expression_from_data_default_node(), pt_is_ascii_string_value_node(), pt_update_host_var_data_type(), and pt_wrap_type_for_collation().
#define PT_IS_CLASSOID_NAME | ( | x | ) | ( (x)->info.name.meta_class == PT_CLASSOID_ATTR) |
Definition at line 119 of file parse_tree.h.
Referenced by pt_check_single_valued_node(), and qo_insert_segment().
#define PT_IS_COLLECTION_TYPE | ( | t | ) |
Definition at line 143 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), do_add_methods(), get_att_default_from_def(), pt_add_type_to_set(), pt_are_equivalent_types(), pt_assignment_compatible(), pt_check_expr_collation(), pt_check_vclass_query_spec(), pt_coerce_3args(), pt_coerce_expr_arguments(), pt_coerce_expression_argument(), pt_coerce_node_collation(), pt_coerce_node_collection_of_collection(), pt_coerce_range_expr_arguments(), pt_collection_assignable(), pt_collection_compatible(), pt_eval_expr_type(), pt_fix_enumeration_comparison(), pt_get_collation_info_for_collection_type(), pt_get_collation_of_collection(), pt_get_common_collection_type(), pt_is_collection_of_type(), pt_is_compatible_without_cast(), pt_type_cast_vclass_query_spec_column(), pt_union_compatible(), pt_wrap_type_for_collation(), pt_wrap_with_cast_op(), qo_convert_to_range_helper(), qo_do_auto_parameterize(), qo_rewrite_subqueries(), and qo_set_value_to_range_list().
#define PT_IS_COMPLEX_TYPE | ( | t | ) |
Definition at line 174 of file parse_tree.h.
Referenced by pt_eval_expr_type(), and pt_get_select_list().
#define pt_is_const | ( | n | ) | PT_IS_CONST(n) |
Definition at line 271 of file parse_tree.h.
Referenced by pt_bind_names(), pt_expand_analytic_node(), pt_fold_const_function(), pt_value_to_db(), qo_analyze_term(), qo_converse_sarg_terms(), and qo_convert_to_range().
#define PT_IS_CONST | ( | n | ) |
Definition at line 364 of file parse_tree.h.
Referenced by call_method(), do_evaluate_insert_values(), jsp_call_stored_procedure(), pt_check_analytic_function(), pt_fix_enumeration_comparison(), pt_fix_interpolation_aggregate_function_order_by(), pt_get_query_limit_from_orderby_for(), pt_is_enumeration_special_comparison(), pt_replace_names_in_update_values(), pt_to_aggregate_node(), pt_to_analytic_node(), qo_analyze_term(), qo_plan_compute_iscan_sort_list(), qo_reduce_equality_terms(), and qo_rewrite_subqueries().
#define pt_is_const_input_hostvar | ( | n | ) | PT_IS_CONST_INPUT_HOSTVAR(n) |
Definition at line 275 of file parse_tree.h.
#define PT_IS_CONST_INPUT_HOSTVAR | ( | n | ) |
Definition at line 375 of file parse_tree.h.
Referenced by qo_construct_new_set(), and qo_is_reduceable_const().
#define pt_is_const_not_hostvar | ( | n | ) | PT_IS_CONST_NOT_HOSTVAR(n) |
Definition at line 274 of file parse_tree.h.
Referenced by do_prepare_insert_internal(), mq_auto_param_merge_clauses(), pt_rewrite_to_auto_param(), qo_apply_range_intersection(), qo_apply_range_intersection_helper(), qo_do_auto_parameterize(), qo_do_auto_parameterize_keylimit_clause(), qo_do_auto_parameterize_limit_clause(), qo_merge_range_helper(), qo_optimize_queries(), and qo_reduce_comp_pair_terms().
#define PT_IS_CONST_NOT_HOSTVAR | ( | n | ) |
Definition at line 370 of file parse_tree.h.
Referenced by pt_get_assignment_lists(), pt_get_next_assignment(), and qo_reduce_equality_terms().
#define pt_is_correlated_subquery | ( | n | ) | PT_IS_CORRELATED_SUBQUERY(n) |
Definition at line 259 of file parse_tree.h.
#define PT_IS_CORRELATED_SUBQUERY | ( | n | ) | ( PT_IS_QUERY((n)) && ((n)->info.query.correlation_level > 0) ) |
Definition at line 299 of file parse_tree.h.
#define PT_IS_COUNTER_TYPE | ( | t | ) | PT_IS_DISCRETE_NUMBER_TYPE(t) |
Definition at line 140 of file parse_tree.h.
#define PT_IS_DATE_TIME_TYPE | ( | t | ) |
Definition at line 195 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), pt_are_equivalent_types(), pt_check_compatible_node_for_orderby(), pt_common_type_op(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_evaluate_db_value_expr(), pt_get_common_datetime_type(), and pt_get_equivalent_type().
#define PT_IS_DATE_TIME_WITH_TZ_TYPE | ( | t | ) |
Definition at line 189 of file parse_tree.h.
#define pt_is_difference | ( | n | ) | PT_IS_DIFFERENCE(n) |
Definition at line 257 of file parse_tree.h.
#define PT_IS_DIFFERENCE | ( | n | ) | ( (n) && ((n)->node_type == PT_DIFFERENCE) ) |
Definition at line 293 of file parse_tree.h.
Referenced by pt_mark_union_leaf_nodes().
#define PT_IS_DISCRETE_NUMBER_TYPE | ( | t | ) |
Definition at line 135 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), pt_are_equivalent_types(), pt_coerce_expression_argument(), pt_coerce_range_expr_arguments(), pt_eval_expr_type(), and pt_eval_function_type_old().
#define pt_is_distinct | ( | n | ) | PT_IS_DISTINCT(n) |
Definition at line 279 of file parse_tree.h.
Referenced by mq_is_pushable_subquery(), and pt_check_for_update_clause().
#define PT_IS_DISTINCT | ( | n | ) | ( (n) && PT_IS_QUERY_NODE_TYPE((n)->node_type) && (n)->info.query.all_distinct != PT_ALL ) |
Definition at line 395 of file parse_tree.h.
#define pt_is_dot_node | ( | n | ) | PT_IS_DOT_NODE(n) |
Definition at line 260 of file parse_tree.h.
Referenced by pt_check_and_replace_hostvar(), and pt_get_col_type().
#define PT_IS_DOT_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_DOT_) ) |
Definition at line 302 of file parse_tree.h.
Referenced by pt_check_union_type_compatibility_of_values_query(), pt_expand_external_path(), and qo_check_like_expression_pre().
#define pt_is_expr_node | ( | n | ) | PT_IS_EXPR_NODE(n) |
Definition at line 261 of file parse_tree.h.
Referenced by gen_outer(), pt_get_col_type(), pt_split_hash_attrs(), qo_converse_sarg_terms(), qo_search_comp_pair_term(), and uci_static().
#define PT_IS_EXPR_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_EXPR) ) |
Definition at line 305 of file parse_tree.h.
Referenced by mq_is_order_dependent_node(), mq_mark_order_dependent_nodes(), mq_rewrite_order_dependent_nodes(), parser_print_function_index_expr(), pt_check_data_default(), pt_check_level_expr(), pt_expr_disallow_op_pre(), pt_expr_to_sort_spec(), pt_find_aggregate_function(), pt_find_default_expression(), pt_function_index_skip_expr(), pt_get_first_arg_ignore_prior(), pt_get_numbering_node_etc(), pt_get_query_limit_from_orderby_for(), pt_must_be_filtering(), pt_replace_names_in_update_values(), pt_resolve_analytic_references(), pt_serial_to_xasl_class_oid_list(), pt_split_join_preds(), pt_substitute_analytic_references(), pt_to_analytic_final_node(), qo_check_terms_for_multiple_range_opt(), qo_convert_to_range_helper(), qo_do_auto_parameterize_limit_clause(), qo_get_orderby_num_upper_bound_node(), and qo_has_is_not_null_term().
#define PT_IS_EXPR_NODE_WITH_OPERATOR | ( | n, | |
op_type | |||
) | ( (PT_IS_EXPR_NODE (n)) && ((n)->info.expr.op == (op_type)) ) |
Definition at line 464 of file parse_tree.h.
Referenced by pt_check_hashable(), pt_free_escape_char(), pt_get_first_arg_ignore_prior(), pt_is_filtering_skip_and_or(), pt_split_hash_attrs_for_HQ(), pt_split_join_preds(), pt_to_single_key(), qo_plan_compute_iscan_sort_list(), and qo_rewrite_like_terms().
#define PT_IS_EXPR_WITH_PRIOR_ARG | ( | x | ) |
Definition at line 467 of file parse_tree.h.
Referenced by qo_apply_range_intersection(), qo_convert_to_range_helper(), qo_fold_is_and_not_null(), and qo_reduce_comp_pair_terms().
#define PT_IS_FALSE_WHERE_VALUE | ( | node | ) |
Definition at line 701 of file parse_tree.h.
Referenced by pt_false_where().
#define pt_is_function | ( | n | ) | PT_IS_FUNCTION(n) |
Definition at line 262 of file parse_tree.h.
Referenced by gen_outer(), pt_get_col_type(), pt_to_rangelist_key(), and qo_all_some_in_selectivity().
#define PT_IS_FUNCTION | ( | n | ) | ( (n) && ((n)->node_type == PT_FUNCTION) ) |
Definition at line 311 of file parse_tree.h.
Referenced by mq_is_order_dependent_node(), mq_mark_order_dependent_nodes(), mq_rewrite_order_dependent_nodes(), pt_eval_expr_type(), pt_find_aggregate_analytic_pre(), pt_find_aggregate_function(), pt_resolve_analytic_references(), pt_substitute_analytic_references(), pt_to_analytic_final_node(), pt_to_single_key(), qo_construct_new_set(), and qo_rewrite_subqueries().
#define PT_IS_HINT_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_NAME && (n)->info.name.meta_class == PT_HINT_NAME) ) |
Definition at line 406 of file parse_tree.h.
Referenced by delete_real_class(), do_execute_delete(), do_execute_merge(), do_execute_update(), do_insert_template(), do_merge(), pt_to_buildlist_proc(), pt_to_buildvalue_proc(), pt_to_delete_xasl(), pt_to_insert_xasl(), pt_to_merge_insert_xasl(), pt_to_merge_update_xasl(), pt_to_update_xasl(), and update_real_class().
#define pt_is_hostvar | ( | n | ) | PT_IS_HOSTVAR(n) |
Definition at line 268 of file parse_tree.h.
#define PT_IS_HOSTVAR | ( | n | ) | ( (n) && ((n)->node_type == PT_HOST_VAR) ) |
Definition at line 342 of file parse_tree.h.
Referenced by insert_rewrite_names_in_value_clauses(), pt_coerce_range_expr_arguments(), pt_eval_expr_type(), pt_eval_type(), and pt_upd_domain_info().
#define pt_is_input_hostvar | ( | n | ) | PT_IS_INPUT_HOSTVAR(n) |
Definition at line 269 of file parse_tree.h.
Referenced by db_is_input_marker(), pt_check_and_replace_hostvar(), and pt_count_input_markers().
#define PT_IS_INPUT_HOSTVAR | ( | n | ) |
Definition at line 345 of file parse_tree.h.
Referenced by pt_eval_expr_type().
#define pt_is_input_parameter | ( | n | ) | PT_IS_INPUT_PARAMETER(n) |
Definition at line 273 of file parse_tree.h.
Referenced by pt_check_and_replace_hostvar(), and pt_get_collation_info().
#define PT_IS_INPUT_PARAMETER | ( | n | ) |
Definition at line 359 of file parse_tree.h.
#define PT_IS_INSERT_VALUE_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_INSERT_VALUE) ) |
Definition at line 333 of file parse_tree.h.
Referenced by do_clear_insert_values(), do_evaluate_insert_values(), and do_replace_names_for_insert_values_pre().
#define pt_is_instnum | ( | n | ) | PT_IS_INSTNUM(n) |
Definition at line 277 of file parse_tree.h.
Referenced by pt_instnum_compatibility(), pt_semantic_check_local(), qo_apply_range_intersection(), qo_convert_to_range(), qo_convert_to_range_helper(), and qo_do_auto_parameterize().
#define PT_IS_INSTNUM | ( | n | ) |
Definition at line 387 of file parse_tree.h.
Referenced by pt_is_inst_or_orderby_num_node(), and pt_to_analytic_final_node().
#define pt_is_intersection | ( | n | ) | PT_IS_INTERSECTION(n) |
Definition at line 256 of file parse_tree.h.
#define PT_IS_INTERSECTION | ( | n | ) | ( (n) && ((n)->node_type == PT_INTERSECTION) ) |
Definition at line 290 of file parse_tree.h.
Referenced by pt_mark_union_leaf_nodes().
#define PT_IS_LOB_TYPE | ( | t | ) |
Definition at line 239 of file parse_tree.h.
Referenced by pt_check_cume_dist_percent_rank_order_by(), pt_check_group_concat_order_by(), pt_get_equivalent_type(), and validate_attribute_domain().
#define PT_IS_LTZ_TYPE | ( | t | ) | ((t) == PT_TYPE_TIMESTAMPLTZ || (t) == PT_TYPE_DATETIMELTZ) |
Definition at line 223 of file parse_tree.h.
Referenced by pt_check_filter_index_expr_pre(), and pt_check_function_index_expr_pre().
#define pt_is_meta | ( | n | ) | PT_IS_META(n) |
Definition at line 280 of file parse_tree.h.
#define PT_IS_META | ( | n | ) |
Definition at line 398 of file parse_tree.h.
#define pt_is_multi_col_term | ( | n | ) | PT_IS_MULTI_COL_TERM(n) |
Definition at line 263 of file parse_tree.h.
Referenced by qo_analyze_term(), and qo_convert_to_range().
#define PT_IS_MULTI_COL_TERM | ( | n | ) |
Definition at line 314 of file parse_tree.h.
#define PT_IS_N_COLUMN_UPDATE_EXPR | ( | n | ) |
Definition at line 422 of file parse_tree.h.
Referenced by do_merge(), do_prepare_merge(), do_prepare_update(), find_update_columns(), mq_class_lambda(), pt_bind_names_merge_update(), pt_bind_names_post(), pt_check_assignments(), pt_get_assignment_lists(), pt_no_double_updates(), pt_replace_names_in_update_values(), pt_replace_referenced_attributes(), update_check_for_constraints(), update_check_having_meta_attr(), update_object_by_oid(), and update_real_class().
#define pt_is_name_node | ( | n | ) | PT_IS_NAME_NODE(n) |
Definition at line 264 of file parse_tree.h.
Referenced by pt_check_hashable(), pt_get_col_type(), and pt_is_spec_node().
#define PT_IS_NAME_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_NAME) ) |
Definition at line 320 of file parse_tree.h.
Referenced by check_arg_valid(), do_insert_template(), pt_bind_names(), pt_check_default_vclass_query_spec(), pt_check_union_type_compatibility_of_values_query(), pt_check_unique_names(), pt_coerce_expr_arguments(), pt_expand_external_path(), pt_expr_to_sort_spec(), pt_has_non_groupby_column_node(), pt_is_join_expr(), pt_is_nested_expr(), pt_must_be_filtering(), pt_replace_names_index_expr(), pt_to_constraint_pred(), qo_check_iscan_for_multi_range_opt(), qo_check_like_expression_pre(), replace_names_alter_chg_attr(), and set_prepare_info_into_list().
#define PT_IS_NATIONAL_CHAR_STRING_TYPE | ( | t | ) |
Definition at line 156 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), func_type::Node::preprocess(), pt_check_cast_op(), pt_is_ascii_string_value_node(), pt_to_pred_expr_local_with_arg(), pt_wrap_type_for_collation(), and qo_rewrite_like_terms().
#define PT_IS_NULL_NODE | ( | e | ) |
Definition at line 122 of file parse_tree.h.
Referenced by check_arg_valid(), do_prepare_insert_internal(), mq_auto_param_merge_clauses(), mq_lambda_node(), pt_eval_expr_type(), pt_fold_const_function(), pt_get_hint(), pt_set_attr_list_types(), qo_allocate_like_bound_for_index_scan(), qo_do_auto_parameterize(), qo_do_auto_parameterize_keylimit_clause(), qo_do_auto_parameterize_limit_clause(), qo_fold_is_and_not_null(), qo_rewrite_like_terms(), and qo_rewrite_one_like_term().
#define PT_IS_NUMBERING_AFTER_EXECUTION | ( | op | ) |
Definition at line 455 of file parse_tree.h.
Referenced by pt_must_be_filtering(), and pt_numbering_set_continue_post().
#define PT_IS_NUMERIC_TYPE | ( | t | ) |
Definition at line 125 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), pt_are_equivalent_types(), pt_check_compatible_node_for_orderby(), pt_coerce_3args(), pt_coerce_expr_arguments(), pt_coerce_insert_values(), pt_coerce_range_expr_arguments(), pt_common_type(), pt_common_type_op(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_evaluate_db_value_expr(), pt_get_common_collection_type(), pt_get_common_datetime_type(), pt_get_equivalent_type(), pt_is_explicit_coerce_allowed_for_default_value(), and pt_wrap_collection_with_cast_op().
#define pt_is_oid_name | ( | n | ) | PT_IS_OID_NAME(n) |
Definition at line 265 of file parse_tree.h.
Referenced by pt_get_col_type().
#define PT_IS_OID_NAME | ( | n | ) |
Definition at line 323 of file parse_tree.h.
Referenced by build_graph_for_entity(), mq_lambda_node(), mq_push_dot_in_query(), mq_push_path(), mq_substitute_path(), pt_attribute_to_regu(), pt_check_single_valued_node(), pt_has_name_oid(), pt_semantic_check_local(), qo_construct_new_set(), and qo_insert_segment().
#define PT_IS_ORDER_DEPENDENT | ( | n | ) |
Definition at line 482 of file parse_tree.h.
Referenced by mq_bump_order_dep_corr_lvl_pre(), mq_rewrite_order_dependent_nodes(), and mq_rewrite_order_dependent_query().
#define pt_is_orderbynum | ( | n | ) | PT_IS_ORDERBYNUM(n) |
Definition at line 278 of file parse_tree.h.
Referenced by qo_do_auto_parameterize().
#define PT_IS_ORDERBYNUM | ( | n | ) | ( (n) && ((n)->node_type == PT_EXPR && ((n)->info.expr.op == PT_ORDERBY_NUM)) ) |
Definition at line 392 of file parse_tree.h.
Referenced by pt_is_inst_or_orderby_num_node(), and pt_to_analytic_final_node().
#define pt_is_output_hostvar | ( | n | ) | PT_IS_OUTPUT_HOSTVAR(n) |
Definition at line 270 of file parse_tree.h.
Referenced by db_is_output_marker(), and pt_count_output_markers().
#define PT_IS_OUTPUT_HOSTVAR | ( | n | ) |
Definition at line 350 of file parse_tree.h.
#define pt_is_parameter | ( | n | ) | PT_IS_PARAMETER(n) |
Definition at line 272 of file parse_tree.h.
#define PT_IS_PARAMETER | ( | n | ) |
Definition at line 355 of file parse_tree.h.
#define PT_IS_PARAMETERIZED_TYPE | ( | t | ) |
Definition at line 229 of file parse_tree.h.
Referenced by pt_apply_expressions_definition(), pt_coerce_range_expr_arguments(), pt_coerce_value_internal(), pt_eval_expr_type(), pt_fold_const_expr(), pt_get_select_list(), pt_type_cast_vclass_query_spec_column(), and qo_reduce_equality_terms().
#define PT_IS_POINTER_REF_NODE | ( | n | ) |
Definition at line 493 of file parse_tree.h.
Referenced by pt_resolve_analytic_references(), pt_substitute_analytic_references(), pt_to_analytic_node(), pt_to_pred_expr_local_with_arg(), and pt_to_regu_variable().
#define PT_IS_PRIMITIVE_TYPE | ( | t | ) | ( ((t) != PT_TYPE_OBJECT) && ((t) != PT_TYPE_NONE)) |
Definition at line 226 of file parse_tree.h.
Referenced by pt_are_equivalent_types(), and pt_get_equivalent_type().
#define pt_is_query | ( | n | ) | PT_IS_QUERY(n) |
Definition at line 258 of file parse_tree.h.
Referenced by expr_is_mergable(), meth_translate_helper(), mq_class_meth_corr_subq_pre(), mq_clear_all_ids(), mq_rewrite_agg_names(), pt_check_assignments(), pt_check_vclass_query_spec(), pt_check_vclass_union_spec(), pt_chop_to_one_select_item(), pt_eval_expr_type(), pt_eval_type_pre(), pt_set_is_view_spec(), pt_to_analytic_final_node(), pt_to_compatible_cast(), pt_to_odku_info(), and pt_type_cast_vclass_query_spec().
#define PT_IS_QUERY | ( | n | ) | ( (n) && (PT_IS_QUERY_NODE_TYPE((n)->node_type)) ) |
Definition at line 296 of file parse_tree.h.
Referenced by db_check_limit_need_recompile(), mq_bump_order_dep_corr_lvl_post(), mq_bump_order_dep_corr_lvl_pre(), mq_copypush_sargable_terms(), mq_copypush_sargable_terms_helper(), mq_substitute_subquery_in_statement(), parser_generate_xasl_proc(), pt_check_for_update_clause(), pt_check_ordby_num_for_multi_range_opt(), pt_check_order_by(), pt_check_with_info(), pt_eval_type_pre(), pt_find_query(), pt_get_query_limit_value(), pt_get_subquery_of_insert_select(), pt_has_reev_in_subquery_post(), pt_has_reev_in_subquery_pre(), pt_must_be_filtering(), pt_to_insert_xasl(), pt_uncorr_post(), qo_check_like_expression_pre(), and qo_plan_print_sort_spec().
#define PT_IS_QUERY_NODE_TYPE | ( | x | ) |
Definition at line 115 of file parse_tree.h.
Referenced by db_set_statement_auto_commit(), meth_bump_corr_post(), meth_bump_corr_pre(), mq_bump_corr_post(), mq_bump_corr_pre(), mq_class_lambda(), mq_is_pushable_subquery(), mq_lambda_node(), mq_push_arg2(), pt_add_oid_to_select_list(), pt_build_do_stmt_aptr_list_pre(), pt_check_order_by(), pt_check_union_is_foldable(), pt_coerce_range_expr_arguments(), pt_count_with_clauses(), pt_find_aggregate_analytic_post(), pt_find_aggregate_analytic_pre(), pt_find_name_id_pre(), pt_fix_enumeration_comparison(), pt_flush_class_and_null_xasl(), pt_get_expression_count(), pt_get_hint(), pt_is_analytic_node(), pt_is_inst_or_orderby_num_node(), pt_make_aptr_parent_node(), pt_null_xasl(), pt_print_data_default(), pt_query_to_set_table(), pt_select_list_to_enumeration_expr(), pt_set_is_system_generated_stmt(), pt_to_outlist(), pt_try_remove_order_by(), pt_uncorr_pre(), qo_convert_to_range_helper(), and qo_optimize_queries().
#define pt_is_select | ( | n | ) | PT_IS_SELECT(n) |
Definition at line 254 of file parse_tree.h.
Referenced by pt_to_compatible_cast().
#define PT_IS_SELECT | ( | n | ) | ( (n) && ((n)->node_type == PT_SELECT) ) |
Definition at line 284 of file parse_tree.h.
Referenced by mq_rewrite_vclass_spec_as_derived(), mq_translate_insert(), mq_translate_tree(), pt_append_odku_references(), pt_bind_names(), pt_to_insert_xasl(), pt_to_odku_info(), qo_check_iscan_for_multi_range_opt(), qo_check_join_for_multi_range_opt(), qo_discover_sort_limit_nodes(), and qo_optimize_queries().
#define PT_IS_SERIAL | ( | op | ) | ( (op) == PT_CURRENT_VALUE || (op) == PT_NEXT_VALUE ) |
Definition at line 461 of file parse_tree.h.
Referenced by parser_generate_xasl_post(), pt_must_be_filtering(), and pt_serial_to_xasl_class_oid_list().
#define pt_is_set_type | ( | n | ) | PT_IS_SET_TYPE(n) |
Definition at line 267 of file parse_tree.h.
Referenced by do_alter_one_clause_with_template(), mq_rewrite_agg_names(), pt_bind_names_post(), pt_check_attribute_domain(), pt_check_set_count_set(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_fold_const_expr(), pt_fold_const_function(), pt_get_expression_count(), pt_rewrite_set_eq_set(), pt_select_list_to_one_col(), pt_set_attr_list_types(), pt_to_rangelist_key(), pt_to_single_key(), and qo_analyze_term().
#define PT_IS_SET_TYPE | ( | n | ) |
Definition at line 336 of file parse_tree.h.
Referenced by qo_classify(), and qo_convert_to_range().
#define PT_IS_SIMPLE_CHAR_STRING_TYPE | ( | t | ) |
Definition at line 160 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), func_type::Node::preprocess(), pt_check_cast_op(), and pt_print_table_option().
#define PT_IS_SORT_SPEC_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_SORT_SPEC) ) |
Definition at line 473 of file parse_tree.h.
Referenced by pt_adjust_analytic_sort_specs(), pt_has_non_groupby_column_node(), and pt_sort_spec_list_to_name_node_list().
#define PT_IS_SPEC_FLAG_SET | ( | spec_, | |
flags_ | |||
) | (((spec_)->info.spec.flag & (flags_)) != 0) |
Definition at line 653 of file parse_tree.h.
Referenced by pt_get_resolution(), pt_to_class_spec_list(), pt_to_delete_xasl(), pt_to_update_xasl(), and qo_discover_indexes().
#define PT_IS_SPEC_REAL_TABLE | ( | spec_ | ) | PT_SPEC_IS_ENTITY(spec_) |
Definition at line 707 of file parse_tree.h.
Referenced by pt_create_pt_name(), pt_get_resolution(), pt_make_flat_list_from_data_types(), pt_must_have_exposed_name(), and pt_resolve_correlation().
#define PT_IS_STRING_TYPE | ( | t | ) |
Definition at line 148 of file parse_tree.h.
Referenced by func_type::cmp_types_castable(), pt_are_equivalent_types(), pt_assignment_compatible(), pt_check_compatible_node_for_orderby(), pt_check_range_partition_strict_increasing(), pt_coerce_3args(), pt_coerce_insert_values(), pt_coerce_partition_value_with_data_type(), pt_coerce_range_expr_arguments(), pt_coerce_value_internal(), pt_common_type(), pt_common_type_op(), pt_eval_expr_type(), pt_eval_function_type_old(), pt_evaluate_db_value_expr(), pt_expr_get_return_type(), pt_fold_const_expr(), pt_get_common_type_for_union(), pt_get_equivalent_type(), pt_is_compatible_without_cast(), pt_is_explicit_coerce_allowed_for_default_value(), pt_to_aggregate_node(), pt_to_compatible_cast(), pt_union_compatible(), pt_upd_domain_info(), pt_values_query_to_compatible_cast(), and func_type::Node::set_return_type().
#define pt_is_unary | ( | op | ) | PT_IS_UNARY(op) |
Definition at line 282 of file parse_tree.h.
#define PT_IS_UNARY | ( | op | ) |
Definition at line 412 of file parse_tree.h.
#define pt_is_union | ( | n | ) | PT_IS_UNION(n) |
Definition at line 255 of file parse_tree.h.
#define PT_IS_UNION | ( | n | ) | ( (n) && ((n)->node_type == PT_UNION) ) |
Definition at line 287 of file parse_tree.h.
Referenced by pt_mark_union_leaf_nodes().
#define pt_is_update_object | ( | n | ) | PT_IS_UPDATE_OBJECT(n) |
Definition at line 281 of file parse_tree.h.
#define PT_IS_UPDATE_OBJECT | ( | n | ) | ( (n) && (n)->node_type == PT_UPDATE && (n)->info.update.spec == NULL ) |
Definition at line 409 of file parse_tree.h.
#define PT_IS_VACUUM_NODE | ( | n | ) | ( (n) && (n)->node_type == PT_VACUUM ) |
Definition at line 497 of file parse_tree.h.
Referenced by do_vacuum(), pt_apply_vacuum(), pt_check_vacuum(), pt_init_vacuum(), and pt_print_vacuum().
#define pt_is_value_node | ( | n | ) | PT_IS_VALUE_NODE(n) |
Definition at line 266 of file parse_tree.h.
Referenced by pt_get_col_type(), pt_get_select_list(), pt_to_rangelist_key(), and uci_static().
#define PT_IS_VALUE_NODE | ( | n | ) | ( (n) && ((n)->node_type == PT_VALUE) ) |
Definition at line 330 of file parse_tree.h.
Referenced by check_arg_valid(), do_clear_insert_values(), do_evaluate_insert_values(), do_replace_names_for_insert_values_pre(), insert_rewrite_names_in_value_clauses(), pt_adjust_analytic_sort_specs(), pt_coerce_expr_arguments(), pt_create_param_for_value(), pt_eval_expr_type(), pt_fold_const_expr(), pt_fold_const_function(), pt_is_ascii_string_value_node(), pt_is_nested_expr(), pt_rewrite_to_auto_param(), pt_split_join_preds(), pt_to_single_key(), and pt_uncorr_post().
#define PT_IS_VALUE_QUERY | ( | n | ) | ((n)->flag.is_value_query == 1) |
Definition at line 476 of file parse_tree.h.
Referenced by add_access_spec(), mq_copypush_sargable_terms_helper(), mq_rewrite_vclass_spec_as_derived(), mq_set_non_updatable_oid(), mq_set_types(), mq_substitute_select_in_statement(), mq_substitute_subquery_in_statement(), pt_add_oid_to_select_list(), pt_check_type_compatibility_of_values_query(), pt_check_union_type_compatibility_of_values_query(), pt_eval_type(), pt_get_subquery_list(), pt_get_values_query_compatible_info(), pt_to_class_spec_list(), pt_to_compatible_cast(), pt_type_cast_vclass_query_spec(), pt_values_query_to_compatible_cast(), pt_wrap_select_list_with_cast_op(), and qo_reduce_equality_terms().
#define PT_MERGE_INFO_HAS_UNIQUE 1 /* has unique constraints */ |
Definition at line 2946 of file parse_tree.h.
Referenced by do_merge(), do_prepare_merge(), pt_to_merge_insert_xasl(), and update_objs_for_list_file().
#define PT_MERGE_INFO_INSERT_ONLY 4 /* merge condition always false */ |
Definition at line 2948 of file parse_tree.h.
Referenced by do_execute_merge(), do_prepare_merge(), and pt_to_merge_xasl().
#define PT_MERGE_INFO_SERVER_OP 2 /* server side operation */ |
Definition at line 2947 of file parse_tree.h.
Referenced by db_can_execute_statement_with_autocommit(), do_execute_merge(), do_prepare_merge(), and pt_to_merge_update_query().
#define PT_NAME_ALLOW_REUSABLE_OID 512 /* ignore the REUSABLE_OID restrictions for this name */ |
Definition at line 2568 of file parse_tree.h.
Referenced by pt_resolve_correlation(), and pt_semantic_check_local().
#define PT_NAME_DEFAULTF_ACCEPTS 4096 /* name of table/column that default function accepts: real table's, cte's */ |
Definition at line 2571 of file parse_tree.h.
Referenced by pt_check_defaultf(), pt_create_pt_name(), pt_find_name_in_spec(), pt_get_attributes(), pt_get_resolution(), pt_make_flat_list_from_data_types(), pt_must_have_exposed_name(), and pt_resolve_correlation().
#define PT_NAME_FOR_UPDATE 2048 /* Table name in FOR UPDATE clause */ |
Definition at line 2570 of file parse_tree.h.
Referenced by pt_resolve_correlation().
#define PT_NAME_GENERATED_DERIVED_SPEC 1024 /* attribute generated from derived spec */ |
Definition at line 2569 of file parse_tree.h.
Referenced by mq_make_derived_spec(), pt_get_collation_info(), pt_select_list_to_one_col(), and pt_to_false_subquery().
#define PT_NAME_INFO_CLEAR_FLAG | ( | e, | |
f | |||
) | (e)->info.name.flag &= (short) ~(f) |
Definition at line 2576 of file parse_tree.h.
#define PT_NAME_INFO_CONSTANT 16 |
Definition at line 2562 of file parse_tree.h.
Referenced by pt_lambda_node(), pt_sort_spec_cover_groupby(), qo_plan_compute_iscan_sort_list(), and qo_reduce_order_by().
#define PT_NAME_INFO_DESC 64 /* DESC on an index column name */ |
Definition at line 2564 of file parse_tree.h.
Referenced by do_add_constraints(), pt_print_name(), and pt_sort_spec_list_to_name_node_list().
#define PT_NAME_INFO_DOT_NAME 2 /* z of x.y.z */ |
Definition at line 2559 of file parse_tree.h.
Referenced by pt_get_node_title(), and pt_get_resolution().
#define PT_NAME_INFO_DOT_SPEC 1 /* x, y of x.y.z */ |
Definition at line 2558 of file parse_tree.h.
Referenced by pt_lambda_check_reduce_eq(), and pt_lambda_node().
#define PT_NAME_INFO_DOT_STAR 8 /* classname.* */ |
Definition at line 2561 of file parse_tree.h.
Referenced by pt_get_node_title(), and pt_resolve_star().
#define PT_NAME_INFO_EXTERNAL 32 /* in case of TEXT type at attr definition or attr.object at attr description */ |
Definition at line 2563 of file parse_tree.h.
Referenced by pt_check_attribute_domain(), pt_check_union_type_compatibility_of_values_query(), pt_expand_external_path(), and pt_resolve_star().
#define PT_NAME_INFO_FILL_DEFAULT 128 /* whether default_value should be filled in */ |
Definition at line 2565 of file parse_tree.h.
Referenced by pt_check_defaultf(), pt_find_attr_in_class_list(), pt_resolve_default_value(), pt_set_fill_default_in_path_expression(), and pt_undef_names_pre().
#define PT_NAME_INFO_GENERATED_OID |
Definition at line 2566 of file parse_tree.h.
Referenced by pt_dup_key_update_stmt(), pt_resolve_correlation(), and pt_semantic_check_local().
#define PT_NAME_INFO_IS_FLAGED | ( | e, | |
f | |||
) | ((e)->info.name.flag & (short) (f)) |
Definition at line 2574 of file parse_tree.h.
Referenced by do_add_constraints(), pt_check_attribute_domain(), pt_check_defaultf(), pt_check_union_type_compatibility_of_values_query(), pt_expand_external_path(), pt_find_attr_in_class_list(), pt_get_collation_info(), pt_get_node_title(), pt_get_resolution(), pt_lambda_node(), pt_print_name(), pt_resolve_correlation(), pt_resolve_star(), pt_semantic_check_local(), pt_sort_spec_cover_groupby(), pt_undef_names_pre(), qo_plan_compute_iscan_sort_list(), and qo_reduce_order_by().
#define PT_NAME_INFO_SET_FLAG | ( | e, | |
f | |||
) | (e)->info.name.flag |= (short) (f) |
Definition at line 2575 of file parse_tree.h.
Referenced by mq_make_derived_spec(), pt_check_union_type_compatibility_of_values_query(), pt_create_pt_name(), pt_dup_key_update_stmt(), pt_find_name_in_spec(), pt_get_attributes(), pt_get_resolution(), pt_lambda_check_reduce_eq(), pt_lambda_node(), pt_make_flat_list_from_data_types(), pt_must_have_exposed_name(), pt_resolve_correlation(), pt_resolve_default_value(), pt_resolve_star(), pt_select_list_to_one_col(), pt_set_fill_default_in_path_expression(), pt_sort_spec_list_to_name_node_list(), and pt_to_false_subquery().
#define PT_NAME_INFO_STAR 4 /* * */ |
Definition at line 2560 of file parse_tree.h.
Referenced by pt_get_node_title(), and pt_resolve_star().
#define PT_NODE_COPY_NUMBER_OUTERLINK | ( | t, | |
s | |||
) |
Definition at line 560 of file parse_tree.h.
Referenced by mq_translate_tree(), pt_expand_external_path(), pt_make_method_call(), and pt_resolve_correlation().
#define PT_NODE_DATA_TYPE | ( | n | ) | ( (n) ? (n)->data_type : NULL ) |
Definition at line 470 of file parse_tree.h.
Referenced by pt_coerce_expr_arguments().
#define PT_NODE_INIT_OUTERLINK | ( | n | ) |
Definition at line 550 of file parse_tree.h.
Referenced by pt_bind_names(), and pt_expand_external_path().
#define PT_NODE_MOVE_NUMBER_OUTERLINK | ( | t, | |
s | |||
) |
Definition at line 572 of file parse_tree.h.
Referenced by do_replace_names_for_insert_values_pre(), mq_replace_virtual_oid_with_real_oid(), pt_bind_reserved_name(), pt_bind_value_to_hostvar_local(), pt_check_and_replace_hostvar(), pt_rewrite_to_auto_param(), pt_to_upd_del_query(), qo_optimize_queries(), qo_rewrite_hidden_col_as_derived(), and qo_rewrite_subqueries().
#define PT_NODE_PRINT_TO_ALIAS | ( | p, | |
n, | |||
c | |||
) |
Definition at line 578 of file parse_tree.h.
Referenced by do_prepare_delete(), do_prepare_insert_internal(), do_prepare_merge(), do_prepare_select(), do_prepare_update(), do_select_internal(), parser_generate_xasl_pre(), pt_fold_const_expr(), pt_fold_const_function(), pt_plan_query(), and pt_report_to_ersys_with_statement().
#define PT_NODE_PRINT_VALUE_TO_TEXT | ( | p, | |
n | |||
) |
Definition at line 597 of file parse_tree.h.
Referenced by pt_coerce_node_collation(), pt_make_string_value(), pt_to_regu_variable(), qo_find_like_rewrite_bound(), and qo_rewrite_one_like_term().
#define PT_REQUIRES_HIERARCHICAL_QUERY | ( | op | ) |
Definition at line 439 of file parse_tree.h.
Referenced by meth_find_hierarchical_op(), pt_must_be_filtering(), and pt_to_regu_variable().
#define PT_SELECT_FULL_INFO_COLS_SCHEMA 0x0100 /* is show columns query */ |
Definition at line 2722 of file parse_tree.h.
Referenced by mq_check_rewrite_select(), mq_copypush_sargable_terms_helper(), mq_push_paths(), mq_translate_tree(), parser_generate_xasl_proc(), pt_make_outer_select_for_show_columns(), pt_make_query_show_columns(), pt_mark_group_having_pt_name(), pt_plan_query(), pt_plan_schema(), pt_print_select(), pt_resolve_group_having_alias(), pt_to_buildschema_proc(), and qo_env_new().
#define PT_SELECT_INFO_ANSI_JOIN 0x01 /* has ANSI join? */ |
Definition at line 2714 of file parse_tree.h.
Referenced by pt_bind_names().
#define PT_SELECT_INFO_CLEAR_FLAG | ( | s, | |
f | |||
) | (s)->info.query.q.select.flag &= ~(f) |
Definition at line 2739 of file parse_tree.h.
Referenced by mq_rewrite_aggregate_as_derived().
#define PT_SELECT_INFO_COLS_SCHEMA 0x80 /* is show columns query */ |
Definition at line 2721 of file parse_tree.h.
Referenced by mq_check_rewrite_select(), mq_copypush_sargable_terms_helper(), mq_push_paths(), mq_translate_tree(), parser_generate_xasl_proc(), pt_make_outer_select_for_show_columns(), pt_make_query_show_columns(), pt_mark_group_having_pt_name(), pt_plan_query(), pt_plan_schema(), pt_print_select(), pt_resolve_group_having_alias(), pt_to_buildschema_proc(), and qo_env_new().
#define PT_SELECT_INFO_DISABLE_LOOSE_SCAN 0x4000 /* loose scan not possible on query */ |
Definition at line 2731 of file parse_tree.h.
Referenced by pt_has_aggregate(), pt_semantic_check_local(), and qo_get_ils_prefix_length().
#define PT_SELECT_INFO_DUMMY 0x04 /* is dummy (i.e., 'SELECT * FROM x') ? */ |
Definition at line 2716 of file parse_tree.h.
#define PT_SELECT_INFO_FOR_UPDATE 0x2000 /* FOR UPDATE clause is active */ |
Definition at line 2730 of file parse_tree.h.
Referenced by mq_class_lambda(), pt_check_for_update_clause(), pt_check_for_update_subquery(), pt_for_update_prepare_query(), pt_for_update_prepare_query_internal(), pt_print_select(), and pt_resolve_names().
#define PT_SELECT_INFO_HAS_AGG 0x08 /* has any type of aggregation? */ |
Definition at line 2717 of file parse_tree.h.
Referenced by mq_rewrite_aggregate_as_derived(), mq_substitute_select_in_statement(), pt_find_aggregate_functions_pre(), pt_has_aggregate(), qo_get_ils_prefix_length(), and qo_rewrite_subqueries().
#define PT_SELECT_INFO_HAS_ANALYTIC 0x10 /* has analytic functions */ |
Definition at line 2718 of file parse_tree.h.
Referenced by pt_has_analytic().
#define PT_SELECT_INFO_IDX_SCHEMA 0x40 /* is show index query */ |
Definition at line 2720 of file parse_tree.h.
Referenced by parser_generate_xasl_proc(), pt_make_query_show_index(), pt_plan_schema(), pt_print_select(), and pt_to_buildschema_proc().
#define PT_SELECT_INFO_IS_FLAGED | ( | s, | |
f | |||
) | ((s)->info.query.q.select.flag & (f)) |
Definition at line 2735 of file parse_tree.h.
Referenced by mq_check_rewrite_select(), mq_class_lambda(), mq_copypush_sargable_terms(), mq_copypush_sargable_terms_helper(), mq_push_paths(), mq_substitute_select_in_statement(), mq_translate_helper(), mq_translate_tree(), mq_updatable_local(), parser_generate_xasl_proc(), pt_bind_names(), pt_check_for_update_clause(), pt_check_for_update_subquery(), pt_for_update_prepare_query(), pt_for_update_prepare_query_internal(), pt_has_aggregate(), pt_has_analytic(), pt_mark_group_having_pt_name(), pt_plan_query(), pt_plan_schema(), pt_print_select(), pt_resolve_group_having_alias(), pt_resolve_names(), pt_to_buildlist_proc(), pt_to_buildschema_proc(), pt_to_delete_xasl(), pt_to_merge_update_query(), pt_to_upd_del_query(), pt_to_update_xasl(), qo_env_new(), and qo_get_ils_prefix_length().
#define PT_SELECT_INFO_IS_MERGE_QUERY 0x0200 /* is a query of a merge stmt */ |
Definition at line 2723 of file parse_tree.h.
Referenced by mq_copypush_sargable_terms(), mq_push_paths(), pt_has_aggregate(), pt_to_buildlist_proc(), pt_to_merge_insert_query(), and pt_to_merge_update_query().
#define PT_SELECT_INFO_IS_UPD_DEL_QUERY 0x1000 /* set if select was built for an UPDATE or DELETE statement */ |
Definition at line 2729 of file parse_tree.h.
Referenced by pt_has_aggregate(), pt_print_select(), and pt_to_upd_del_query().
#define PT_SELECT_INFO_LIST_PUSHER |
Definition at line 2724 of file parse_tree.h.
Referenced by pt_to_buildlist_proc().
#define PT_SELECT_INFO_MULTI_UPDATE_AGG 0x20 /* is query for multi-table update using aggregate */ |
Definition at line 2719 of file parse_tree.h.
Referenced by pt_to_buildlist_proc(), pt_to_merge_update_query(), and pt_to_upd_del_query().
#define PT_SELECT_INFO_MVCC_LOCK_NEEDED 0x8000 /* lock returned rows */ |
Definition at line 2732 of file parse_tree.h.
Referenced by pt_to_delete_xasl(), pt_to_merge_update_query(), pt_to_upd_del_query(), and pt_to_update_xasl().
#define PT_SELECT_INFO_NO_STRICT_OID_CHECK |
Definition at line 2726 of file parse_tree.h.
Referenced by mq_translate_helper(), pt_to_merge_update_query(), and pt_to_upd_del_query().
#define PT_SELECT_INFO_ORACLE_OUTER 0x02 /* has Oracle's outer join operator? */ |
Definition at line 2715 of file parse_tree.h.
Referenced by pt_bind_names().
#define PT_SELECT_INFO_READ_ONLY 0x010000 /* read-only system generated queries like show statement */ |
Definition at line 2733 of file parse_tree.h.
Referenced by mq_updatable_local(), pt_make_outer_select_for_show_stmt(), pt_make_query_show_create_table(), pt_make_query_show_grants(), pt_make_query_show_index(), pt_make_query_show_trace(), and pt_make_query_showstmt().
#define PT_SELECT_INFO_SET_FLAG | ( | s, | |
f | |||
) | (s)->info.query.q.select.flag |= (f) |
Definition at line 2737 of file parse_tree.h.
Referenced by mq_rewrite_aggregate_as_derived(), mq_substitute_select_in_statement(), pt_find_aggregate_functions_pre(), pt_has_aggregate(), pt_has_analytic(), pt_make_outer_select_for_show_columns(), pt_make_outer_select_for_show_stmt(), pt_make_query_show_columns(), pt_make_query_show_create_table(), pt_make_query_show_grants(), pt_make_query_show_index(), pt_make_query_show_trace(), pt_make_query_showstmt(), pt_semantic_check_local(), pt_to_delete_xasl(), pt_to_merge_insert_query(), pt_to_merge_update_query(), pt_to_upd_del_query(), pt_to_update_xasl(), and qo_rewrite_subqueries().
#define PT_SET_JMP_ENV | ( | parser | ) |
Definition at line 89 of file parse_tree.h.
Referenced by meth_translate(), mq_translate(), parser_parse_file(), parser_parse_string_with_escapes(), and pt_compile().
#define PT_SET_NODE_COLL_MODIFIER | ( | p, | |
coll | |||
) |
Definition at line 626 of file parse_tree.h.
Referenced by pt_coerce_node_collation().
#define PT_SET_ORDER_DEPENDENT_FLAG | ( | n, | |
f | |||
) |
Definition at line 500 of file parse_tree.h.
Referenced by mq_mark_order_dependent_nodes(), and mq_rewrite_order_dependent_query().
#define PT_SET_VALUE_QUERY | ( | n | ) | ((n)->flag.is_value_query = 1) |
Definition at line 479 of file parse_tree.h.
Referenced by add_access_spec(), pt_to_outlist(), and pt_wrap_select_list_with_cast_op().
#define PT_SHOULD_BIND_RESERVED_NAME | ( | spec_ | ) | (PT_SPEC_GET_RESERVED_NAME_TYPE (spec_) != RESERVED_NAME_INVALID) |
Definition at line 686 of file parse_tree.h.
Referenced by pt_get_resolution(), pt_resolve_star(), and pt_split_attrs().
#define PT_SPEC_GET_RESERVED_NAME_TYPE | ( | spec_ | ) |
Definition at line 661 of file parse_tree.h.
Referenced by pt_resolve_star_reserved_names().
#define PT_SPEC_IS_CTE | ( | spec_ | ) | ((spec_)->info.spec.cte_pointer != NULL) |
Definition at line 694 of file parse_tree.h.
Referenced by copy_node_in_tree_post(), do_set_pruning_type(), get_natural_join_attrs_from_pt_spec(), get_referenced_attrs(), mq_check_vclass_for_insert(), mq_rewrite_upd_del_top_level_specs(), pt_bind_cte_self_references_types(), pt_bind_names(), pt_bind_scope(), pt_bind_spec_attrs(), pt_count_ctes_post(), pt_create_pt_name(), pt_false_where(), pt_find_name_in_spec(), pt_flat_spec_pre(), pt_print_spec(), pt_resolve_correlation(), pt_resolve_cte_specs(), pt_resolve_spec_to_cte_and_count(), pt_resolve_star(), pt_semantic_check_local(), pt_to_spec_list(), and qo_add_node().
#define PT_SPEC_IS_DERIVED | ( | spec_ | ) | ((spec_)->info.spec.derived_table != NULL) |
Definition at line 690 of file parse_tree.h.
Referenced by get_natural_join_attrs_from_pt_spec(), get_referenced_attrs(), mq_check_vclass_for_insert(), mq_rewrite_upd_del_top_level_specs(), mq_translate_local(), mq_translate_tree(), pt_bind_names(), pt_bind_scope(), pt_bind_spec_attrs(), pt_create_pt_name(), pt_find_name_in_spec(), pt_flat_spec_pre(), pt_print_select(), pt_print_spec(), pt_resolve_correlation(), pt_resolve_star(), pt_spec_to_oid_attr(), pt_to_cselect_table_spec_list(), pt_to_spec_list(), and qo_add_node().
#define PT_SPEC_IS_ENTITY | ( | spec_ | ) | ((spec_)->info.spec.entity_name != NULL) |
Definition at line 698 of file parse_tree.h.
Referenced by do_set_pruning_type(), get_natural_join_attrs_from_pt_spec(), pt_bind_names(), pt_bind_spec_attrs(), pt_create_pt_name(), pt_find_name_in_spec(), pt_flat_spec_pre(), pt_make_table_info(), pt_print_spec(), pt_resolve_cte_specs(), pt_resolve_spec_to_cte(), pt_resolve_spec_to_cte_and_count(), and pt_resolve_star().
#define PT_SPEC_SPECIAL_INDEX_SCAN | ( | spec_ | ) |
Definition at line 656 of file parse_tree.h.
Referenced by pt_bind_names_post(), pt_to_class_spec_list(), qo_find_node_indexes(), qo_get_xasl_index_info(), and qo_search_planner().
#define PT_VALUE_GET_BYTES | ( | node | ) |
Definition at line 250 of file parse_tree.h.
Referenced by add_foreign_key(), create_or_drop_index_helper(), do_add_constraints(), do_alter_index_comment(), do_alter_index_rebuild(), do_alter_serial(), do_alter_user(), do_create_serial(), and do_create_user().
#define PT_WARNING | ( | parser, | |
node, | |||
msg | |||
) | pt_frob_warning(parser, node, msg) |
Definition at line 76 of file parse_tree.h.
#define PT_WARNINGc | ( | parser, | |
node, | |||
msg | |||
) | pt_frob_warning(parser, node, msg) |
Definition at line 78 of file parse_tree.h.
#define PT_WARNINGf | ( | parser, | |
node, | |||
msg, | |||
arg1 | |||
) | pt_cat_warning(parser, node, msg, arg1) |
Definition at line 80 of file parse_tree.h.
#define PT_WARNINGf2 | ( | parser, | |
node, | |||
msg, | |||
arg1, | |||
arg2 | |||
) | pt_cat_warning(parser, node, msg, arg1, arg2) |
Definition at line 81 of file parse_tree.h.
#define PT_WARNINGf3 | ( | parser, | |
node, | |||
msg, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) | pt_cat_warning(parser, node, msg, arg1, arg2, arg3) |
Definition at line 82 of file parse_tree.h.
#define PT_WARNINGm | ( | parser, | |
node, | |||
setNo, | |||
msgNo | |||
) | pt_cat_warning(parser, node, setNo, msgNo) |
Definition at line 77 of file parse_tree.h.
#define PT_WARNINGmf | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1 | |||
) | pt_cat_warning(parser, node, setNo, msgNo, arg1) |
Definition at line 84 of file parse_tree.h.
Referenced by pt_check_constraint().
#define PT_WARNINGmf2 | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1, | |||
arg2 | |||
) | pt_cat_warning(parser, node, setNo, msgNo, arg1, arg2) |
Definition at line 85 of file parse_tree.h.
Referenced by pt_set_host_variables().
#define PT_WARNINGmf3 | ( | parser, | |
node, | |||
setNo, | |||
msgNo, | |||
arg1, | |||
arg2, | |||
arg3 | |||
) | pt_cat_warning(parser, node, setNo, msgNo, arg1, arg2, arg3) |
Definition at line 86 of file parse_tree.h.
#define RESET_HOST_VARIABLES_IF_INTERNAL_STATEMENT | ( | parser_ | ) |
Definition at line 539 of file parse_tree.h.
Referenced by do_execute_statement(), do_statement(), and pt_check_with_info().
#define SET_HOST_VARIABLES_IF_INTERNAL_STATEMENT | ( | parser_ | ) |
Definition at line 528 of file parse_tree.h.
Referenced by do_execute_statement(), do_statement(), and pt_check_with_info().
typedef struct execution_state_values EXECUTION_STATE_VALUES |
Definition at line 3493 of file parse_tree.h.
typedef struct keyword_record KEYWORD_RECORD |
Definition at line 3504 of file parse_tree.h.
typedef struct must_be_filtering_info MUST_BE_FILTERING_INFO |
Definition at line 1696 of file parse_tree.h.
typedef struct nested_view_version_info NESTED_VIEW_VERSION_INFO |
Definition at line 1668 of file parse_tree.h.
typedef struct parser_context PARSER_CONTEXT |
Definition at line 1560 of file parse_tree.h.
typedef void(* PARSER_GENERIC_VOID_FUNCTION) () |
Definition at line 1694 of file parse_tree.h.
typedef struct parser_varchar PARSER_VARCHAR |
Definition at line 1558 of file parse_tree.h.
typedef struct pt_agg_check_info PT_AGG_CHECK_INFO |
Definition at line 1658 of file parse_tree.h.
typedef struct pt_agg_find_info PT_AGG_FIND_INFO |
Definition at line 1660 of file parse_tree.h.
typedef struct pt_agg_name_info PT_AGG_NAME_INFO |
Definition at line 1661 of file parse_tree.h.
typedef struct pt_agg_rewrite_info PT_AGG_REWRITE_INFO |
Definition at line 1659 of file parse_tree.h.
typedef struct pt_alter_info PT_ALTER_INFO |
Definition at line 1563 of file parse_tree.h.
typedef struct pt_alter_trigger_info PT_ALTER_TRIGGER_INFO |
Definition at line 1565 of file parse_tree.h.
typedef struct pt_alter_user_info PT_ALTER_USER_INFO |
Definition at line 1564 of file parse_tree.h.
typedef struct pt_assignments_helper PT_ASSIGNMENTS_HELPER |
Definition at line 3629 of file parse_tree.h.
typedef struct pt_attach_info PT_ATTACH_INFO |
Definition at line 1566 of file parse_tree.h.
typedef struct pt_attr_def_info PT_ATTR_DEF_INFO |
Definition at line 1568 of file parse_tree.h.
typedef struct pt_attr_ordering_info PT_ATTR_ORDERING_INFO |
Definition at line 1569 of file parse_tree.h.
typedef struct pt_auth_cmd_info PT_AUTH_CMD_INFO |
Definition at line 1570 of file parse_tree.h.
typedef struct pt_auto_increment_info PT_AUTO_INCREMENT_INFO |
Definition at line 1579 of file parse_tree.h.
Definition at line 3527 of file parse_tree.h.
typedef struct pt_check_option_info PT_CHECK_OPTION_INFO |
Definition at line 1656 of file parse_tree.h.
typedef enum pt_coll_coerc_lev PT_COLL_COERC_LEV |
Definition at line 3667 of file parse_tree.h.
typedef struct pt_coll_infer PT_COLL_INFER |
Definition at line 3669 of file parse_tree.h.
typedef struct pt_commit_work_info PT_COMMIT_WORK_INFO |
Definition at line 1571 of file parse_tree.h.
typedef struct pt_constraint_info PT_CONSTRAINT_INFO |
Definition at line 1645 of file parse_tree.h.
typedef struct pt_create_entity_info PT_CREATE_ENTITY_INFO |
Definition at line 1572 of file parse_tree.h.
typedef struct pt_create_trigger_info PT_CREATE_TRIGGER_INFO |
Definition at line 1575 of file parse_tree.h.
typedef struct pt_create_user_info PT_CREATE_USER_INFO |
Definition at line 1574 of file parse_tree.h.
typedef struct pt_cte_info PT_CTE_INFO |
Definition at line 1576 of file parse_tree.h.
typedef enum pt_currency_types PT_CURRENCY |
typedef struct cursor_id PT_CURSOR_ID |
Definition at line 1666 of file parse_tree.h.
typedef struct pt_data_default_info PT_DATA_DEFAULT_INFO |
Definition at line 1578 of file parse_tree.h.
typedef struct pt_data_type_info PT_DATA_TYPE_INFO |
Definition at line 1582 of file parse_tree.h.
typedef union pt_data_value PT_DATA_VALUE |
Definition at line 1641 of file parse_tree.h.
typedef long PT_DATE |
Definition at line 2982 of file parse_tree.h.
typedef DB_DATETIME PT_DATETIME |
Definition at line 2983 of file parse_tree.h.
typedef DB_DATETIMETZ PT_DATETIMETZ |
Definition at line 2984 of file parse_tree.h.
typedef struct pt_delete_info PT_DELETE_INFO |
Definition at line 1583 of file parse_tree.h.
typedef struct pt_do_info PT_DO_INFO |
Definition at line 1652 of file parse_tree.h.
typedef struct pt_dot_info PT_DOT_INFO |
Definition at line 1584 of file parse_tree.h.
typedef struct pt_drop_info PT_DROP_INFO |
Definition at line 1585 of file parse_tree.h.
typedef struct pt_drop_session_var_info PT_DROP_SESSION_VAR_INFO |
Definition at line 1589 of file parse_tree.h.
typedef struct pt_drop_trigger_info PT_DROP_TRIGGER_INFO |
Definition at line 1587 of file parse_tree.h.
typedef struct pt_drop_user_info PT_DROP_USER_INFO |
Definition at line 1586 of file parse_tree.h.
typedef struct pt_drop_variable_info PT_DROP_VARIABLE_INFO |
Definition at line 1588 of file parse_tree.h.
typedef struct pt_enum_element_value PT_ENUM_ELEMENT |
Definition at line 1640 of file parse_tree.h.
typedef struct pt_evaluate_info PT_EVALUATE_INFO |
Definition at line 1591 of file parse_tree.h.
typedef struct pt_event_object_info PT_EVENT_OBJECT_INFO |
Definition at line 1592 of file parse_tree.h.
typedef struct pt_event_spec_info PT_EVENT_SPEC_INFO |
Definition at line 1593 of file parse_tree.h.
typedef struct pt_event_target_info PT_EVENT_TARGET_INFO |
Definition at line 1594 of file parse_tree.h.
typedef struct pt_execute_info PT_EXECUTE_INFO |
Definition at line 1649 of file parse_tree.h.
typedef struct pt_execute_trigger_info PT_EXECUTE_TRIGGER_INFO |
Definition at line 1595 of file parse_tree.h.
typedef struct pt_expr_info PT_EXPR_INFO |
Definition at line 1596 of file parse_tree.h.
typedef struct pt_file_path_info PT_FILE_PATH_INFO |
Definition at line 1597 of file parse_tree.h.
typedef struct pt_filter_index_info PT_FILTER_INDEX_INFO |
Definition at line 1662 of file parse_tree.h.
typedef struct pt_flat_spec_info PT_FLAT_SPEC_INFO |
Definition at line 1683 of file parse_tree.h.
typedef struct pt_foreign_key_info PT_FOREIGN_KEY_INFO |
Definition at line 1644 of file parse_tree.h.
typedef struct pt_function_info PT_FUNCTION_INFO |
Definition at line 1598 of file parse_tree.h.
typedef struct pt_get_opt_lvl_info PT_GET_OPT_LVL_INFO |
Definition at line 1599 of file parse_tree.h.
typedef struct pt_get_stats_info PT_GET_STATS_INFO |
Definition at line 1634 of file parse_tree.h.
typedef struct pt_get_trigger_info PT_GET_TRIGGER_INFO |
Definition at line 1600 of file parse_tree.h.
typedef struct pt_get_xaction_info PT_GET_XACTION_INFO |
Definition at line 1601 of file parse_tree.h.
typedef struct pt_grant_info PT_GRANT_INFO |
Definition at line 1602 of file parse_tree.h.
typedef struct parser_hint PT_HINT |
Definition at line 1671 of file parse_tree.h.
typedef struct pt_host_var_info PT_HOST_VAR_INFO |
Definition at line 1603 of file parse_tree.h.
typedef struct pt_host_vars PT_HOST_VARS |
Definition at line 1665 of file parse_tree.h.
typedef struct pt_index_info PT_INDEX_INFO |
Definition at line 1573 of file parse_tree.h.
typedef struct pt_insert_info PT_INSERT_INFO |
Definition at line 1604 of file parse_tree.h.
typedef struct pt_insert_value_info PT_INSERT_VALUE_INFO |
Definition at line 1679 of file parse_tree.h.
typedef int(* PT_INT_FUNCTION) (PARSER_CONTEXT *c) |
Definition at line 3528 of file parse_tree.h.
typedef struct pt_isolation_lvl_info PT_ISOLATION_LVL_INFO |
Definition at line 1605 of file parse_tree.h.
typedef struct pt_json_table_column_info PT_JSON_TABLE_COLUMN_INFO |
Definition at line 1687 of file parse_tree.h.
typedef struct pt_json_table_info PT_JSON_TABLE_INFO |
Definition at line 1685 of file parse_tree.h.
typedef struct pt_json_table_node_info PT_JSON_TABLE_NODE_INFO |
Definition at line 1686 of file parse_tree.h.
typedef struct pt_killstmt_info PT_KILLSTMT_INFO |
Definition at line 1627 of file parse_tree.h.
typedef struct qfile_list_id PT_LIST_ID |
Definition at line 1667 of file parse_tree.h.
typedef struct pt_merge_info PT_MERGE_INFO |
Definition at line 1606 of file parse_tree.h.
typedef struct pt_method_call_info PT_METHOD_CALL_INFO |
Definition at line 1607 of file parse_tree.h.
typedef struct pt_method_def_info PT_METHOD_DEF_INFO |
Definition at line 1608 of file parse_tree.h.
typedef struct pt_monetary_value PT_MONETARY |
Definition at line 1639 of file parse_tree.h.
typedef struct pt_name_info PT_NAME_INFO |
Definition at line 1609 of file parse_tree.h.
typedef struct pt_named_arg_info PT_NAMED_ARG_INFO |
Definition at line 1610 of file parse_tree.h.
typedef struct parser_node PT_NODE |
Definition at line 1562 of file parse_tree.h.
typedef struct pt_node_list_info PT_NODE_LIST_INFO |
Definition at line 1654 of file parse_tree.h.
typedef enum pt_node_type PT_NODE_TYPE |
Definition at line 904 of file parse_tree.h.
typedef PT_NODE*(* PT_NODE_WALK_FUNCTION) (PARSER_CONTEXT *p, PT_NODE *tree, void *arg, int *continue_walk) |
Definition at line 1689 of file parse_tree.h.
typedef struct pt_non_groupby_col_info PT_NON_GROUPBY_COL_INFO |
Definition at line 1663 of file parse_tree.h.
typedef struct pt_partition_info PT_PARTITION_INFO |
Definition at line 1580 of file parse_tree.h.
typedef struct pt_parts_info PT_PARTS_INFO |
Definition at line 1581 of file parse_tree.h.
typedef struct pt_plan_trace_info PT_PLAN_TRACE_INFO |
typedef struct pt_pointer_info PT_POINTER_INFO |
Definition at line 1646 of file parse_tree.h.
typedef enum pt_pointer_type PT_POINTER_TYPE |
Definition at line 3128 of file parse_tree.h.
typedef struct pt_prepare_info PT_PREPARE_INFO |
Definition at line 1648 of file parse_tree.h.
typedef struct pt_attach_info PT_PREPARE_TO_COMMIT_INFO |
Definition at line 1567 of file parse_tree.h.
typedef PARSER_VARCHAR*(* PT_PRINT_VALUE_FUNC) (PARSER_CONTEXT *parser, const PT_NODE *val) |
Definition at line 1691 of file parse_tree.h.
typedef struct pt_query_info PT_QUERY_INFO |
Definition at line 1621 of file parse_tree.h.
typedef struct pt_remove_trigger_info PT_REMOVE_TRIGGER_INFO |
Definition at line 1611 of file parse_tree.h.
typedef struct pt_rename_info PT_RENAME_INFO |
Definition at line 1612 of file parse_tree.h.
typedef struct pt_rename_trigger_info PT_RENAME_TRIGGER_INFO |
Definition at line 1613 of file parse_tree.h.
typedef struct pt_reserved_name PT_RESERVED_NAME |
Definition at line 2465 of file parse_tree.h.
typedef struct pt_resolution_info PT_RESOLUTION_INFO |
Definition at line 1614 of file parse_tree.h.
typedef struct pt_revoke_info PT_REVOKE_INFO |
Definition at line 1615 of file parse_tree.h.
typedef struct pt_rollback_work_info PT_ROLLBACK_WORK_INFO |
Definition at line 1616 of file parse_tree.h.
typedef struct pt_savepoint_info PT_SAVEPOINT_INFO |
Definition at line 1618 of file parse_tree.h.
typedef struct pt_scope_info PT_SCOPE_INFO |
Definition at line 1619 of file parse_tree.h.
typedef struct pt_select_info PT_SELECT_INFO |
Definition at line 1620 of file parse_tree.h.
typedef struct pt_serial_info PT_SERIAL_INFO |
Definition at line 1577 of file parse_tree.h.
typedef struct pt_set_names_info PT_SET_NAMES_INFO |
Definition at line 1672 of file parse_tree.h.
typedef struct pt_set_opt_lvl_info PT_SET_OPT_LVL_INFO |
Definition at line 1622 of file parse_tree.h.
typedef struct pt_set_session_variable_info PT_SET_SESSION_VARIABLE_INFO |
Definition at line 1635 of file parse_tree.h.
typedef struct pt_set_sys_params_info PT_SET_SYS_PARAMS_INFO |
Definition at line 1623 of file parse_tree.h.
typedef struct pt_set_timezone_info PT_SET_TIMEZONE_INFO |
Definition at line 1681 of file parse_tree.h.
typedef struct pt_set_trigger_info PT_SET_TRIGGER_INFO |
Definition at line 1625 of file parse_tree.h.
typedef struct pt_set_xaction_info PT_SET_XACTION_INFO |
Definition at line 1624 of file parse_tree.h.
typedef struct pt_showstmt_info PT_SHOWSTMT_INFO |
Definition at line 1626 of file parse_tree.h.
typedef struct pt_sort_spec_info PT_SORT_SPEC_INFO |
Definition at line 1628 of file parse_tree.h.
typedef struct pt_spec_info PT_SPEC_INFO |
Definition at line 1590 of file parse_tree.h.
typedef union pt_statement_info PT_STATEMENT_INFO |
Definition at line 1653 of file parse_tree.h.
typedef struct pt_stored_proc_info PT_STORED_PROC_INFO |
Definition at line 1647 of file parse_tree.h.
typedef struct pt_stored_proc_param_info PT_STORED_PROC_PARAM_INFO |
Definition at line 1650 of file parse_tree.h.
typedef struct pt_table_option_info PT_TABLE_OPTION_INFO |
Definition at line 1655 of file parse_tree.h.
typedef long PT_TIME |
Definition at line 2979 of file parse_tree.h.
typedef struct pt_timeout_info PT_TIMEOUT_INFO |
Definition at line 1629 of file parse_tree.h.
typedef DB_TIMESTAMPTZ PT_TIMESTAMPTZ |
Definition at line 2981 of file parse_tree.h.
typedef enum pt_time_zones PT_TIMEZONE |
typedef struct pt_trace_info PT_TRACE_INFO |
Definition at line 1673 of file parse_tree.h.
typedef struct pt_trigger_action_info PT_TRIGGER_ACTION_INFO |
Definition at line 1630 of file parse_tree.h.
typedef struct pt_trigger_spec_list_info PT_TRIGGER_SPEC_LIST_INFO |
Definition at line 1631 of file parse_tree.h.
typedef struct pt_truncate_info PT_TRUNCATE_INFO |
Definition at line 1651 of file parse_tree.h.
typedef struct pt_tuple_value_info PT_TUPLE_VALUE_INFO |
Definition at line 1675 of file parse_tree.h.
typedef enum pt_type_enum PT_TYPE_ENUM |
Definition at line 962 of file parse_tree.h.
typedef struct pt_union_info PT_UNION_INFO |
Definition at line 1617 of file parse_tree.h.
typedef struct pt_update_info PT_UPDATE_INFO |
Definition at line 1632 of file parse_tree.h.
typedef struct pt_update_stats_info PT_UPDATE_STATS_INFO |
Definition at line 1633 of file parse_tree.h.
typedef long PT_UTIME |
Definition at line 2980 of file parse_tree.h.
typedef struct pt_value_info PT_VALUE_INFO |
Definition at line 1642 of file parse_tree.h.
typedef struct pt_with_clause_info PT_WITH_CLAUSE_INFO |
Definition at line 1677 of file parse_tree.h.
typedef struct PT_ZZ_ERROR_MSG_INFO PT_ZZ_ERROR_MSG_INFO |
Definition at line 1643 of file parse_tree.h.
typedef struct semantic_chk_info SEMANTIC_CHK_INFO |
Definition at line 1670 of file parse_tree.h.
typedef struct view_cache_info VIEW_CACHE_INFO |
Definition at line 1669 of file parse_tree.h.
anonymous enum |
Enumerator | |
---|---|
PT_STOP_WALK | |
PT_CONTINUE_WALK | |
PT_LEAF_WALK | |
PT_LIST_WALK |
Definition at line 720 of file parse_tree.h.
anonymous enum |
Enumerator | |
---|---|
PT_USER_SELECT | |
PT_MERGE_SELECT |
Definition at line 728 of file parse_tree.h.
anonymous enum |
Enumerator | |
---|---|
PT_IDX_HINT_FORCE | |
PT_IDX_HINT_USE | |
PT_IDX_HINT_IGNORE | |
PT_IDX_HINT_ALL_EXCEPT | |
PT_IDX_HINT_CLASS_NONE | |
PT_IDX_HINT_NONE |
Definition at line 2594 of file parse_tree.h.
enum PT_ALTER_CODE |
Definition at line 1224 of file parse_tree.h.
enum pt_coll_coerc_lev |
Definition at line 3641 of file parse_tree.h.
Enumerator | |
---|---|
PT_RANGE_MERGE | |
PT_RANGE_INTERSECTION | |
PT_REDUCE_COMP_PAIR_TERMS |
Definition at line 1496 of file parse_tree.h.
Enumerator | |
---|---|
CONNECT_BY_CYCLES_ERROR | |
CONNECT_BY_CYCLES_NONE | |
CONNECT_BY_CYCLES_IGNORE | |
CONNECT_BY_CYCLES_NONE_IGNORE |
Definition at line 1536 of file parse_tree.h.
enum PT_CONSTRAINT_TYPE |
Enumerator | |
---|---|
PT_CONSTRAIN_UNKNOWN | |
PT_CONSTRAIN_PRIMARY_KEY | |
PT_CONSTRAIN_FOREIGN_KEY | |
PT_CONSTRAIN_NULL | |
PT_CONSTRAIN_NOT_NULL | |
PT_CONSTRAIN_UNIQUE | |
PT_CONSTRAIN_CHECK |
Definition at line 1290 of file parse_tree.h.
Enumerator | |
---|---|
PT_CREATE_SELECT_NO_ACTION | |
PT_CREATE_SELECT_REPLACE | |
PT_CREATE_SELECT_IGNORE |
Definition at line 1889 of file parse_tree.h.
enum pt_currency_types |
Definition at line 2987 of file parse_tree.h.
enum pt_custom_print |
Definition at line 734 of file parse_tree.h.
enum PT_ERROR_CODE |
Enumerator | |
---|---|
PT_NO_ERROR | |
PT_USAGE | |
PT_NODE_TABLE_OVERFLOW | |
PT_NAMES_TABLE_OVERFLOW | |
PT_CANT_OPEN_FILE | |
PT_STACK_OVERFLOW | |
PT_STACK_UNDERFLOW | |
PT_PARSE_ERROR | |
PT_ILLEGAL_TYPE_IN_FUNC | |
PT_NO_ARG_IN_FUNC |
Definition at line 1208 of file parse_tree.h.
enum PT_ERROR_TYPE |
Enumerator | |
---|---|
PT_SYNTAX | |
PT_SEMANTIC | |
PT_EXECUTION |
Definition at line 1503 of file parse_tree.h.
enum PT_EVENT_TYPE |
Enumerator | |
---|---|
PT_EV_INSERT | |
PT_EV_STMT_INSERT | |
PT_EV_DELETE | |
PT_EV_STMT_DELETE | |
PT_EV_UPDATE | |
PT_EV_STMT_UPDATE | |
PT_EV_ALTER | |
PT_EV_DROP | |
PT_EV_COMMIT | |
PT_EV_ROLLBACK | |
PT_EV_ABORT | |
PT_EV_TIMEOUT |
Definition at line 1272 of file parse_tree.h.
enum PT_HINT_ENUM |
Definition at line 1161 of file parse_tree.h.
enum PT_INCLUDE_OID_TYPE |
Enumerator | |
---|---|
PT_NO_OID_INCLUDED | |
PT_INCLUDE_OID | |
PT_INCLUDE_OID_TRUSTME |
Definition at line 1489 of file parse_tree.h.
Enumerator | |
---|---|
EXCLUDE_HIDDEN_COLUMNS | |
INCLUDE_HIDDEN_COLUMNS |
Definition at line 1510 of file parse_tree.h.
enum PT_JOIN_TYPE |
Enumerator | |
---|---|
PT_JOIN_NONE | |
PT_JOIN_CROSS | |
PT_JOIN_NATURAL | |
PT_JOIN_INNER | |
PT_JOIN_LEFT_OUTER | |
PT_JOIN_RIGHT_OUTER | |
PT_JOIN_FULL_OUTER | |
PT_JOIN_UNION |
Definition at line 1149 of file parse_tree.h.
enum PT_MISC_TYPE |
Definition at line 983 of file parse_tree.h.
enum pt_node_type |
Definition at line 786 of file parse_tree.h.
enum PT_OP_TYPE |
Definition at line 1320 of file parse_tree.h.
enum PT_PARTITION_TYPE |
Enumerator | |
---|---|
PT_PARTITION_HASH | |
PT_PARTITION_RANGE | |
PT_PARTITION_LIST |
Definition at line 1301 of file parse_tree.h.
enum pt_pointer_type |
Enumerator | |
---|---|
PT_POINTER_NORMAL | |
PT_POINTER_REF |
Definition at line 3123 of file parse_tree.h.
enum PT_PRIV_TYPE |
Enumerator | |
---|---|
PT_NO_PRIV | |
PT_ADD_PRIV | |
PT_ALL_PRIV | |
PT_ALTER_PRIV | |
PT_DELETE_PRIV | |
PT_DROP_PRIV | |
PT_EXECUTE_PRIV | |
PT_INDEX_PRIV | |
PT_INSERT_PRIV | |
PT_REFERENCES_PRIV | |
PT_SELECT_PRIV | |
PT_UPDATE_PRIV |
Definition at line 965 of file parse_tree.h.
enum PT_RESERVED_NAME_ID |
Definition at line 2397 of file parse_tree.h.
Enumerator | |
---|---|
RESERVED_NAME_INVALID | |
RESERVED_NAME_RECORD_INFO | |
RESERVED_NAME_PAGE_INFO | |
RESERVED_NAME_KEY_INFO | |
RESERVED_NAME_BTREE_NODE_INFO |
Definition at line 2387 of file parse_tree.h.
enum PT_SPEC_FLAG |
Definition at line 1517 of file parse_tree.h.
enum PT_TABLE_OPTION_TYPE |
Definition at line 1308 of file parse_tree.h.
enum pt_time_zones |
Enumerator | |
---|---|
PT_TIMEZONE_EASTERN | |
PT_TIMEZONE_CENTRAL | |
PT_TIMEZONE_MOUNTAIN | |
PT_TIMEZONE_PACIFIC |
Definition at line 2970 of file parse_tree.h.
enum pt_type_enum |
Definition at line 907 of file parse_tree.h.
Enumerator | |
---|---|
SERVER_INSERT_NOT_CHECKED | |
SERVER_INSERT_IS_ALLOWED | |
SERVER_INSERT_IS_NOT_ALLOWED |
Definition at line 1547 of file parse_tree.h.
void* parser_allocate_string_buffer | ( | const PARSER_CONTEXT * | parser, |
const int | length, | ||
const int | align | ||
) |
Definition at line 458 of file parse_tree.c.
References parser_string_block::block_end, CAST_BUFLEN, parser_string_block::aligned::chars, HASH_NUMBER, parser_context::id, parser_string_block::last_string_end, parser_string_block::last_string_start, parser_string_block::next, NULL, parser_create_string_block(), parser_string_block::parser_id, pthread_mutex_lock, pthread_mutex_unlock, rv, and parser_string_block::u.
Referenced by parser_alloc(), pt_append_bytes(), pt_append_bytes_for(), pt_append_string(), pt_append_string_for(), and pt_record_error().
void pt_init_node | ( | PT_NODE * | node, |
PT_NODE_TYPE | node_type | ||
) |
Definition at line 5178 of file parse_tree_cl.c.
References assert, parser_node::info, parser_node::node_type, NULL, pt_init_f, and PT_LAST_NODE_NUMBER.
Referenced by qo_convert_attref_to_dotexpr().
bool pt_is_json_doc_type | ( | PT_TYPE_ENUM | type | ) |
Definition at line 1442 of file parse_tree.c.
References db_is_json_doc_type(), pt_type_enum_to_db(), PT_TYPE_MAYBE, and PT_TYPE_NULL.
Referenced by pt_are_equivalent_types(), pt_get_equivalent_type(), and pt_semantic_check_local().
bool pt_is_json_value_type | ( | PT_TYPE_ENUM | type | ) |
Definition at line 1429 of file parse_tree.c.
References db_is_json_value_type(), pt_type_enum_to_db(), PT_TYPE_MAYBE, and PT_TYPE_NULL.
Referenced by pt_are_equivalent_types(), and pt_get_equivalent_type().
PARSER_CONTEXT* parent_parser |
Definition at line 135 of file parse_tree_cl.c.
Referenced by do_check_internal_statements(), and pt_check_with_info().
PT_RESERVED_NAME pt_Reserved_name_table[] |
Definition at line 92 of file parse_tree.c.
Referenced by pt_bind_reserved_name(), pt_resolve_star_reserved_names(), and qo_get_attr_info().