fix nested subquery bug
This commit is contained in:
		| @ -160,6 +160,8 @@ int ObExprRelationAnalyzer::visit_stmt(ObDMLStmt *stmt) | |||||||
|         LOG_WARN("relation expr is null", K(ret), K(expr)); |         LOG_WARN("relation expr is null", K(ret), K(expr)); | ||||||
|       } else if (OB_FAIL(visit_expr(*expr, stmt->get_current_level()))) { |       } else if (OB_FAIL(visit_expr(*expr, stmt->get_current_level()))) { | ||||||
|         LOG_WARN("failed to visit expr", K(ret)); |         LOG_WARN("failed to visit expr", K(ret)); | ||||||
|  |       } else if (OB_FAIL(expr->extract_info())) { | ||||||
|  |         LOG_WARN("failed to extract expr info"); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|     if (OB_SUCC(ret) && stmt->is_select_stmt()) { |     if (OB_SUCC(ret) && stmt->is_select_stmt()) { | ||||||
|  | |||||||
| @ -1234,7 +1234,7 @@ int ObTransformJoinElimination::left_join_can_be_eliminated(ObDMLStmt *stmt, | |||||||
|         ret = OB_ERR_UNEXPECTED; |         ret = OB_ERR_UNEXPECTED; | ||||||
|         LOG_WARN("condition is null", K(ret)); |         LOG_WARN("condition is null", K(ret)); | ||||||
|         // todo  |         // todo  | ||||||
|       } else if (condition->is_const_expr()) { |       } else if (condition->is_static_scalar_const_expr()) { | ||||||
|         ObObj value; |         ObObj value; | ||||||
|         bool got_result = false; |         bool got_result = false; | ||||||
|         if (OB_FAIL(ObSQLUtils::calc_const_or_calculable_expr(ctx_->exec_ctx_, |         if (OB_FAIL(ObSQLUtils::calc_const_or_calculable_expr(ctx_->exec_ctx_, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 obdev
					obdev