summaryrefslogtreecommitdiff
path: root/sql/sp_rcontext.h
diff options
context:
space:
mode:
authorpem@mysql.com <>2005-10-17 15:07:47 +0200
committerpem@mysql.com <>2005-10-17 15:07:47 +0200
commite58531570371b640e963d01e5714b636e7bad82b (patch)
treed16ca31453be37d53895be07584765b1337a6698 /sql/sp_rcontext.h
parent6a88684eb3580bbf23815c87abb4e027283e1474 (diff)
downloadmariadb-git-e58531570371b640e963d01e5714b636e7bad82b.tar.gz
Additional fix for BUG#7049, after review.
Make sure "select" aborts when finding a SP condition handler beyond the current scope.
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r--sql/sp_rcontext.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sp_rcontext.h b/sql/sp_rcontext.h
index c7a298eccc0..cae5c5467c9 100644
--- a/sql/sp_rcontext.h
+++ b/sql/sp_rcontext.h
@@ -149,6 +149,13 @@ class sp_rcontext : public Sql_alloc
return m_handler[m_hfound].type;
}
+ // Returns true if we found a handler in this context
+ inline bool
+ found_handler_here()
+ {
+ return (m_hfound >= 0);
+ }
+
// Clears the handler find state
inline void
clear_handler()