[to #50654171] adjust some ObArray to ObIArray avoid to pass deep copy
This commit is contained in:
@ -447,7 +447,7 @@ int ObCallProcedureResolver::resolve(const ParseNode &parse_tree)
|
||||
OZ (call_proc_info->get_dependency_table().push_back(obj_version));
|
||||
}
|
||||
}
|
||||
ObArray<ObRawExpr*> params;
|
||||
ObSEArray<ObRawExpr*, 16> params;
|
||||
OZ (resolve_cparams(params_node, proc_info, call_proc_info, params));
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
|
||||
@ -63,10 +63,10 @@ int ObCallProcedureInfo::add_out_param(
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObCallProcedureInfo::prepare_expression(const common::ObArray<sql::ObRawExpr*> params)
|
||||
int ObCallProcedureInfo::prepare_expression(const common::ObIArray<sql::ObRawExpr*> ¶ms)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
ObArray<ObSqlExpression*> array;
|
||||
ObSEArray<ObSqlExpression*, 16> array;
|
||||
for (int64_t i = 0; OB_SUCC(ret) && i < params.count(); ++i) {
|
||||
ObSqlExpression *expr = NULL;
|
||||
if (OB_FAIL(sql_expression_factory_.alloc(expr))) {
|
||||
@ -84,7 +84,7 @@ int ObCallProcedureInfo::prepare_expression(const common::ObArray<sql::ObRawExpr
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObCallProcedureInfo::final_expression(const common::ObArray<sql::ObRawExpr*> params,
|
||||
int ObCallProcedureInfo::final_expression(const common::ObIArray<sql::ObRawExpr*> ¶ms,
|
||||
ObSQLSessionInfo *session_info,
|
||||
share::schema::ObSchemaGetterGuard *schema_guard)
|
||||
{
|
||||
|
||||
@ -91,8 +91,8 @@ public:
|
||||
void set_is_udt_routine(bool v) { is_udt_routine_ = v; }
|
||||
bool is_udt_routine() const { return is_udt_routine_; }
|
||||
|
||||
int prepare_expression(const common::ObArray<sql::ObRawExpr*> params);
|
||||
int final_expression(const common::ObArray<sql::ObRawExpr*> params,
|
||||
int prepare_expression(const common::ObIArray<sql::ObRawExpr*> ¶ms);
|
||||
int final_expression(const common::ObIArray<sql::ObRawExpr*> ¶ms,
|
||||
ObSQLSessionInfo *session_info,
|
||||
share::schema::ObSchemaGetterGuard *schema_guard);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user