fix parallel var assign bug
This commit is contained in:
@ -146,7 +146,9 @@ ObOptimizerContext(ObSQLSessionInfo *session_info,
|
||||
aggregation_optimization_settings_(0),
|
||||
query_ctx_(query_ctx),
|
||||
nested_sql_flags_(0),
|
||||
has_for_update_(false)
|
||||
has_for_update_(false),
|
||||
has_var_assign_(false),
|
||||
is_var_assign_only_in_root_stmt_(false)
|
||||
{ }
|
||||
inline common::ObOptStatManager *get_opt_stat_manager() { return opt_stat_manager_; }
|
||||
inline void set_opt_stat_manager(common::ObOptStatManager *sm) { opt_stat_manager_ = sm; }
|
||||
@ -462,6 +464,10 @@ ObOptimizerContext(ObSQLSessionInfo *session_info,
|
||||
bool contain_user_nested_sql() const { return nested_sql_flags_ > 0 && !is_online_ddl_; }
|
||||
void set_for_update() { has_for_update_ = true; }
|
||||
bool has_for_update() { return has_for_update_;};
|
||||
inline bool has_var_assign() { return has_var_assign_; }
|
||||
inline void set_has_var_assign(bool v) { has_var_assign_ = v; }
|
||||
inline bool is_var_assign_only_in_root_stmt() { return is_var_assign_only_in_root_stmt_; }
|
||||
inline void set_is_var_assign_only_in_root_stmt(bool v) { is_var_assign_only_in_root_stmt_ = v; }
|
||||
|
||||
private:
|
||||
ObSQLSessionInfo *session_info_;
|
||||
@ -529,6 +535,8 @@ private:
|
||||
};
|
||||
};
|
||||
bool has_for_update_;
|
||||
bool has_var_assign_;
|
||||
bool is_var_assign_only_in_root_stmt_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user