fix create view bug with prefix index
This commit is contained in:
		| @ -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)); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 rq0
					rq0