replace ts related to ddl with scn.
This commit is contained in:
@ -59,10 +59,10 @@ const bool ObSelectIntoItem::DEFAULT_OPTIONAL_ENCLOSED = false;
|
||||
const char ObSelectIntoItem::DEFAULT_FIELD_ESCAPED_CHAR = '\\';
|
||||
|
||||
//对于select .. for update 也认为是被更改
|
||||
bool ObSelectStmt::check_table_be_modified(uint64_t ref_table_id) const
|
||||
int ObSelectStmt::check_table_be_modified(uint64_t ref_table_id, bool& is_exists) const
|
||||
{
|
||||
bool is_exists = false;
|
||||
int ret = OB_SUCCESS;
|
||||
is_exists = false;
|
||||
for (int64_t i = 0; OB_SUCC(ret) && !is_exists && i < table_items_.count(); ++i) {
|
||||
TableItem *table_item = table_items_.at(i);
|
||||
if (OB_ISNULL(table_item)) {
|
||||
@ -83,13 +83,13 @@ bool ObSelectStmt::check_table_be_modified(uint64_t ref_table_id) const
|
||||
if (OB_ISNULL(sub_stmt)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_ERROR("sub stmt is null", K(ret));
|
||||
} else if (OB_FAIL(sub_stmt->check_table_be_modified(ref_table_id))) {
|
||||
} else if (OB_FAIL(SMART_CALL(sub_stmt->check_table_be_modified(ref_table_id, is_exists)))) {
|
||||
LOG_WARN("check sub stmt whether has select for update failed", K(ret), K(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return is_exists;
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool ObSelectStmt::has_distinct_or_concat_agg() const
|
||||
|
||||
Reference in New Issue
Block a user