Fix create view and alter generated column bugs

This commit is contained in:
2149
2023-08-10 09:42:26 +00:00
committed by ob-robot
parent b49c3559a2
commit b66dd1ebf2
15 changed files with 135 additions and 28 deletions

View File

@ -4765,6 +4765,9 @@ int ObSelectResolver::resolve_into_clause(const ParseNode *node)
} else if (OB_UNLIKELY(is_in_set_query())) {
ret = OB_INAPPROPRIATE_INTO;
LOG_WARN("select into can not in set query", K(ret));
} else if (is_mysql_mode() && params_.is_from_create_view_) {
ret = OB_ERR_VIEW_SELECT_CONTAIN_INTO;
LOG_WARN("View's SELECT contains a 'INTO' clause.", K(ret));
} else {
new(into_item) ObSelectIntoItem();
into_item->into_type_ = node->type_;