summaryrefslogtreecommitdiff
path: root/sql/sp_rcontext.h
diff options
context:
space:
mode:
authorbell@book.sanja.is.com.ua <>2005-05-09 01:59:10 +0300
committerbell@book.sanja.is.com.ua <>2005-05-09 01:59:10 +0300
commit91dccaa36f66b298b3fb83793939f5d9929a7cea (patch)
tree8d33320966b89e4ec888a4f4fbd50dc50071ad92 /sql/sp_rcontext.h
parentb93385de8f6c45305b965fdb603734dc510fd039 (diff)
downloadmariadb-git-91dccaa36f66b298b3fb83793939f5d9929a7cea.tar.gz
Item::fix_field need correct pointer on item reference to chnge it if itis need, so support of correct item address added to SP commands (BUG#5963)
some optimisation of IF/NOT IF ptomised to Pem
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r--sql/sp_rcontext.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sp_rcontext.h b/sql/sp_rcontext.h
index afcd937a369..c132032e32c 100644
--- a/sql/sp_rcontext.h
+++ b/sql/sp_rcontext.h
@@ -74,7 +74,7 @@ class sp_rcontext : public Sql_alloc
/* Returns 0 on success, -1 on (eval) failure */
int
- set_item_eval(uint idx, Item *i, enum_field_types type);
+ set_item_eval(uint idx, Item **i, enum_field_types type);
inline Item *
get_item(uint idx)
@@ -82,6 +82,14 @@ class sp_rcontext : public Sql_alloc
return m_frame[idx];
}
+
+ inline Item **
+ get_item_addr(uint idx)
+ {
+ return m_frame + idx;
+ }
+
+
inline void
set_result(Item *it)
{