summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.cc
diff options
context:
space:
mode:
authorpem@mysql.comhem.se <>2005-02-25 17:56:45 +0100
committerpem@mysql.comhem.se <>2005-02-25 17:56:45 +0100
commit2af86eafc76e872c3e3e326fe9a66dadf1916e36 (patch)
tree47860c6a45865a5fa9435a20f759c570ab7a54a2 /sql/sp_pcontext.cc
parente3f286a04fad1ac8f9b89de6c62d2813dbeeda4b (diff)
downloadmariadb-git-2af86eafc76e872c3e3e326fe9a66dadf1916e36.tar.gz
Fixed BUG#8757: Stored Procedures: Scope of Begin and End Statements do not work properly.
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r--sql/sp_pcontext.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc
index 3b60f0936f9..3ae7c05c4d6 100644
--- a/sql/sp_pcontext.cc
+++ b/sql/sp_pcontext.cc
@@ -264,7 +264,7 @@ sp_pcontext::find_cursor(LEX_STRING *name, uint *poff, my_bool scoped)
(const uchar *)name->str, name->length,
(const uchar *)n.str, n.length) == 0)
{
- *poff= i;
+ *poff= m_coffset + i;
return TRUE;
}
}