summaryrefslogtreecommitdiff
path: root/sql/sp_rcontext.h
diff options
context:
space:
mode:
authorpem@mysql.com <>2003-02-26 19:22:29 +0100
committerpem@mysql.com <>2003-02-26 19:22:29 +0100
commitca2e77ca7a4cd4cbdb08425044ca71f3d38def64 (patch)
tree21d88c3a00a56c11d4f65d0c77e082899658ec01 /sql/sp_rcontext.h
parentd8c75ec8aa867ec002c543e7931d54fd7144fd46 (diff)
downloadmariadb-git-ca2e77ca7a4cd4cbdb08425044ca71f3d38def64.tar.gz
Made stored FUNCTION invokation work almost always. Still buggy and unstable, and
various known problems, but good enough for a checkpoint commit.
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r--sql/sp_rcontext.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sql/sp_rcontext.h b/sql/sp_rcontext.h
index 5ffbb0266e6..78485fdd090 100644
--- a/sql/sp_rcontext.h
+++ b/sql/sp_rcontext.h
@@ -26,7 +26,7 @@ class sp_rcontext : public Sql_alloc
public:
sp_rcontext(uint size)
- : m_count(0), m_size(size)
+ : m_count(0), m_size(size), m_result(NULL)
{
m_frame = (Item **)sql_alloc(size * sizeof(Item*));
m_outs = (int *)sql_alloc(size * sizeof(int));
@@ -70,12 +70,25 @@ class sp_rcontext : public Sql_alloc
return m_outs[idx];
}
+ inline void
+ set_result(Item *it)
+ {
+ m_result= it;
+ }
+
+ inline Item *
+ get_result()
+ {
+ return m_result;
+ }
+
private:
uint m_count;
uint m_size;
Item **m_frame;
int *m_outs;
+ Item *m_result; // For FUNCTIONs
}; // class sp_rcontext : public Sql_alloc