[FEAT MERGE]4_1_sql_feature
Co-authored-by: leslieyuchen <leslieyuchen@gmail.com> Co-authored-by: Charles0429 <xiezhenjiang@gmail.com> Co-authored-by: raywill <hustos@gmail.com>
This commit is contained in:
@ -74,45 +74,6 @@ int ObInsertAllStmt::assign(const ObInsertAllStmt &other)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObInsertAllStmt::replace_inner_stmt_expr(const common::ObIArray<ObRawExpr*> &other_exprs,
|
||||
const common::ObIArray<ObRawExpr*> &new_exprs)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (OB_FAIL(ObDelUpdStmt::replace_inner_stmt_expr(other_exprs, new_exprs))) {
|
||||
LOG_WARN("failed to replace inner stmt expr", K(ret));
|
||||
} else {
|
||||
for (int64_t i = 0; OB_SUCC(ret) && i < table_info_.count(); i++) {
|
||||
if (OB_ISNULL(table_info_.at(i))) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("get unexpected null", K(ret));
|
||||
} else if (OB_FAIL(table_info_.at(i)->replace_exprs(other_exprs, new_exprs))) {
|
||||
LOG_WARN("failed to replace exprs", K(ret));
|
||||
} else { /*do nothing*/ }
|
||||
}
|
||||
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObInsertAllStmt::inner_get_relation_exprs(RelExprCheckerBase &expr_checker)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
for (int64_t i = 0; OB_SUCC(ret) && i < table_info_.count(); i++) {
|
||||
if (OB_ISNULL(table_info_.at(i))) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("get unexpected null", K(ret));
|
||||
} else if (OB_FAIL(table_info_.at(i)->get_relation_exprs(expr_checker))) {
|
||||
LOG_WARN("failed to get relation exprs", K(ret));
|
||||
}
|
||||
}
|
||||
if (OB_SUCC(ret)) {
|
||||
if (OB_FAIL(ObDelUpdStmt::inner_get_relation_exprs(expr_checker))) {
|
||||
LOG_WARN("get delup stmt relation exprs failed", K(ret));
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObInsertAllStmt::check_table_be_modified(uint64_t ref_table_id, bool& found) const
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user