[FEAT MERGE] Merge foreign key refactor to master;
This commit is contained in:
@ -869,6 +869,9 @@ OB_INLINE int ObTableScanOp::init_das_scan_rtdef(const ObDASScanCtDef &das_ctdef
|
||||
das_rtdef.tx_lock_timeout_ = my_session->get_trx_lock_timeout();
|
||||
das_rtdef.scan_flag_ = MY_CTDEF.scan_flags_;
|
||||
das_rtdef.scan_flag_.is_show_seed_ = plan_ctx->get_show_seed();
|
||||
if(is_foreign_check_nested_session() && stmt::T_SELECT == ctx_.get_sql_ctx()->stmt_type_) {
|
||||
das_rtdef.is_for_foreign_check_ = true;
|
||||
}
|
||||
if (MY_SPEC.batch_scan_flag_ || is_lookup) {
|
||||
das_rtdef.scan_flag_.scan_order_ = ObQueryFlag::KeepOrder;
|
||||
}
|
||||
|
||||
@ -473,6 +473,8 @@ protected:
|
||||
eval_ctx_, pd_expr_spec.max_batch_size_);
|
||||
}
|
||||
}
|
||||
bool is_foreign_check_nested_session() { return ObSQLUtils::is_fk_nested_sql(&ctx_);}
|
||||
|
||||
private:
|
||||
const ObTableScanSpec& get_tsc_spec() {return MY_SPEC;}
|
||||
const ObTableScanCtDef& get_tsc_ctdef() {return MY_SPEC.tsc_ctdef_;}
|
||||
|
||||
Reference in New Issue
Block a user