summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.cc
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2005-02-25 17:56:45 +0100
committerunknown <pem@mysql.comhem.se>2005-02-25 17:56:45 +0100
commit3d8aed6d83096102d8273bd238cc186e0fbbf0cb (patch)
tree47860c6a45865a5fa9435a20f759c570ab7a54a2 /sql/sp_pcontext.cc
parentb67253a17c219d1706771637d92687d3c83d4b00 (diff)
downloadmariadb-git-3d8aed6d83096102d8273bd238cc186e0fbbf0cb.tar.gz
Fixed BUG#8757: Stored Procedures: Scope of Begin and End Statements do not work properly.
mysql-test/r/sp.result: New test case for BUG#8757. mysql-test/t/sp.test: New test case for BUG#8757. sql/sp_pcontext.cc: Return the correct scope offset to cursors during parsing.
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;
}
}