summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r--sql/sp_pcontext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h
index 6a6920d89e1..e30af3fcde5 100644
--- a/sql/sp_pcontext.h
+++ b/sql/sp_pcontext.h
@@ -394,6 +394,9 @@ public:
sp_pcontext *parent_context() const
{ return m_parent; }
+ sp_pcontext *child_context(uint i) const
+ { return i < m_children.elements() ? m_children.at(i) : NULL; }
+
/// Calculate and return the number of handlers to pop between the given
/// context and this one.
///