diff options
author | konstantin@mysql.com <> | 2006-04-14 02:38:41 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2006-04-14 02:38:41 +0400 |
commit | b5863b39879632559b563562b8b58f4516ac0697 (patch) | |
tree | 325efd44415f652a479ac9ca681edcc7a9c5f7c5 /sql/sp_head.cc | |
parent | b6992dd4c52974d2246c0db33648d1a4f4c83b0f (diff) | |
parent | 6f51b4199fd2937b7e814bf632e37016568d38f2 (diff) | |
download | mariadb-git-b5863b39879632559b563562b8b58f4516ac0697.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/opt/local/work/mysql-5.0-runtime-merge
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index bba9479c8f3..15d621b1d6d 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -1214,7 +1214,7 @@ sp_head::execute_function(THD *thd, Item **argp, uint argcount, DBUG_ENTER("sp_head::execute_function"); DBUG_PRINT("info", ("function %s", m_name.str)); - params = m_pcont->context_pvars(); + params = m_pcont->context_var_count(); /* Check that the function is called with all specified arguments. @@ -1391,7 +1391,7 @@ bool sp_head::execute_procedure(THD *thd, List<Item> *args) { bool err_status= FALSE; - uint params = m_pcont->context_pvars(); + uint params = m_pcont->context_var_count(); sp_rcontext *save_spcont, *octx; sp_rcontext *nctx = NULL; DBUG_ENTER("sp_head::execute_procedure"); @@ -1443,15 +1443,15 @@ sp_head::execute_procedure(THD *thd, List<Item> *args) for (uint i= 0 ; i < params ; i++) { Item *arg_item= it_args++; - sp_pvar_t *pvar= m_pcont->find_pvar(i); + sp_variable_t *spvar= m_pcont->find_variable(i); if (!arg_item) break; - if (!pvar) + if (!spvar) continue; - if (pvar->mode != sp_param_in) + if (spvar->mode != sp_param_in) { if (!arg_item->is_splocal() && !item_is_user_var(arg_item)) { @@ -1461,7 +1461,7 @@ sp_head::execute_procedure(THD *thd, List<Item> *args) } } - if (pvar->mode == sp_param_out) + if (spvar->mode == sp_param_out) { Item_null *null_item= new Item_null(); @@ -1521,9 +1521,9 @@ sp_head::execute_procedure(THD *thd, List<Item> *args) if (!arg_item) break; - sp_pvar_t *pvar= m_pcont->find_pvar(i); + sp_variable_t *spvar= m_pcont->find_variable(i); - if (pvar->mode == sp_param_in) + if (spvar->mode == sp_param_in) continue; if (arg_item->is_splocal()) @@ -2388,7 +2388,7 @@ sp_instr_set::print(String *str) { /* set name@offset ... */ int rsrv = SP_INSTR_UINT_MAXLEN+6; - sp_pvar_t *var = m_ctx->find_pvar(m_offset); + sp_variable_t *var = m_ctx->find_variable(m_offset); /* 'var' should always be non-null, but just in case... */ if (var) @@ -3004,8 +3004,8 @@ sp_instr_cfetch::execute(THD *thd, uint *nextp) void sp_instr_cfetch::print(String *str) { - List_iterator_fast<struct sp_pvar> li(m_varlist); - sp_pvar_t *pv; + List_iterator_fast<struct sp_variable> li(m_varlist); + sp_variable_t *pv; LEX_STRING n; my_bool found= m_ctx->find_cursor(m_cursor, &n); /* cfetch name@offset vars... */ |