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;
|
int ret = OB_SUCCESS;
|
||||||
ObSEArray<ObRawExpr*, 8> generate_exprs;
|
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);
|
ObRawExpr* expr = exprs.at(i);
|
||||||
if (OB_ISNULL(expr)) {
|
if (OB_ISNULL(expr)) {
|
||||||
ret = OB_ERR_UNEXPECTED;
|
ret = OB_ERR_UNEXPECTED;
|
||||||
|
|||||||
@ -1939,6 +1939,7 @@ int ObRawExprUtils::create_substr_expr(ObRawExprFactory& expr_factory, ObSQLSess
|
|||||||
ret = OB_ERR_UNEXPECTED;
|
ret = OB_ERR_UNEXPECTED;
|
||||||
LOG_WARN("to_type is null");
|
LOG_WARN("to_type is null");
|
||||||
} else {
|
} else {
|
||||||
|
out_expr->set_func_name(N_SUBSTR);
|
||||||
if (NULL == third_expr) {
|
if (NULL == third_expr) {
|
||||||
if (OB_FAIL(out_expr->set_param_exprs(first_expr, second_expr))) {
|
if (OB_FAIL(out_expr->set_param_exprs(first_expr, second_expr))) {
|
||||||
LOG_WARN("add param expr failed", K(ret));
|
LOG_WARN("add param expr failed", K(ret));
|
||||||
|
|||||||
Reference in New Issue
Block a user