summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2005-12-02 21:20:25 +0200
committerunknown <bell@sanja.is.com.ua>2005-12-02 21:20:25 +0200
commit5dac7516e2f3b2440a50cd0be036b6acea123dc8 (patch)
tree5340b8e84501c9a79870d98ea17a6a9e2e4a3387 /sql/sp_head.cc
parent79a46e0bf8fdc40fb1556d2ccfd95a79e50002ca (diff)
parent4202271065969a00c310f832cd496cb6f3c095e5 (diff)
downloadmariadb-git-5dac7516e2f3b2440a50cd0be036b6acea123dc8.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/work-bug1-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-merge1-5.0 sql/sp_head.cc: Auto merged sql/sql_view.cc: Auto merged sql/sql_yacc.yy: Auto merged mysql-test/r/view.result: SCCS merged mysql-test/t/view.test: SCCS merged
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 81e10e59a9b..ff4f898924c 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -954,8 +954,12 @@ int sp_head::execute(THD *thd)
m_first_instance->m_first_free_instance= m_next_cached_sp;
DBUG_PRINT("info", ("first free for 0x%lx ++: 0x%lx->0x%lx, level: %lu, flags %x",
(ulong)m_first_instance, this, m_next_cached_sp,
- m_next_cached_sp->m_recursion_level,
- m_next_cached_sp->m_flags));
+ (m_next_cached_sp ?
+ m_next_cached_sp->m_recursion_level :
+ 0),
+ (m_next_cached_sp ?
+ m_next_cached_sp->m_flags :
+ 0)));
/*
Check that if there are not any instances after this one then
pointer to the last instance points on this instance or if there are