提交 936acf05 编写于 作者: R rq0 提交者: LINGuanRen

fix create view bug with prefix index

上级 1e4ef5ba
......@@ -6004,7 +6004,7 @@ int ObDMLResolver::deduce_generated_exprs(ObIArray<ObRawExpr*>& exprs)
{
int ret = OB_SUCCESS;
ObSEArray<ObRawExpr*, 8> generate_exprs;
for (int64_t i = 0; OB_SUCC(ret) && i < exprs.count(); ++i) {
for (int64_t i = 0; OB_SUCC(ret) && !params_.is_from_create_view_ && i < exprs.count(); ++i) {
ObRawExpr* expr = exprs.at(i);
if (OB_ISNULL(expr)) {
ret = OB_ERR_UNEXPECTED;
......
......@@ -1939,6 +1939,7 @@ int ObRawExprUtils::create_substr_expr(ObRawExprFactory& expr_factory, ObSQLSess
ret = OB_ERR_UNEXPECTED;
LOG_WARN("to_type is null");
} else {
out_expr->set_func_name(N_SUBSTR);
if (NULL == third_expr) {
if (OB_FAIL(out_expr->set_param_exprs(first_expr, second_expr))) {
LOG_WARN("add param expr failed", K(ret));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册