diff options
author | unknown <pem@mysql.comhem.se> | 2005-04-14 14:52:35 +0200 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2005-04-14 14:52:35 +0200 |
commit | e0fdbeba7eb3aa1e1662b228d0c4132c01f660e6 (patch) | |
tree | 4d68d693e57a9c8510fa5a630fe0061668408ba8 /sql/sp_rcontext.h | |
parent | 1c2c6bba1ca34dee39eac2e2596150600285af16 (diff) | |
download | mariadb-git-e0fdbeba7eb3aa1e1662b228d0c4132c01f660e6.tar.gz |
Fixed BUG#9598: stored procedure call within stored procedure
overwrites IN variable
and added error checking of variables for [IN]OUT parameters while
rewriting the out parameter handling.
mysql-test/r/sp-error.result:
New test case for non-variable argument for [IN]OUT parameters.
(And changed to qualified names in some other error messages.)
mysql-test/r/sp.result:
New test case for BUG#9598.
mysql-test/t/sp-error.test:
New test case for non-variable argument for [IN]OUT parameters.
mysql-test/t/sp.test:
New test case for BUG#9598.
sql/item.h:
Need to distinguish between SP local variable items and other items,
for error checking and [IN]OUT parameter handling.
sql/share/errmsg.txt:
New error message for non-variable arguments for [IN]OUT parameters in stored procedures.
sql/sp_head.cc:
Rewrote the [IN]OUT parameter handling in procedure invokation, to make
it work properly when using user variables in sub-calls.
Also added error checking for non-variable arguments for such parameters
(and changed to qualified names for wrong number of arg. errors).
sql/sp_rcontext.cc:
No need to keep track on the out index for an [IN]OUT parameter any more.
sql/sp_rcontext.h:
No need to keep track on the out index for an [IN]OUT parameter any more.
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r-- | sql/sp_rcontext.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sql/sp_rcontext.h b/sql/sp_rcontext.h index 37d718048a0..afcd937a369 100644 --- a/sql/sp_rcontext.h +++ b/sql/sp_rcontext.h @@ -83,18 +83,6 @@ class sp_rcontext : public Sql_alloc } inline void - set_oindex(uint idx, int oidx) - { - m_outs[idx] = oidx; - } - - inline int - get_oindex(uint idx) - { - return m_outs[idx]; - } - - inline void set_result(Item *it) { m_result= it; @@ -187,7 +175,6 @@ private: uint m_count; uint m_fsize; Item **m_frame; - int *m_outs; Item *m_result; // For FUNCTIONs |